Unverified Commit d42af30d authored by Leo Gao's avatar Leo Gao Committed by GitHub
Browse files

wsc273: change random

parent dc1a17b1
......@@ -59,7 +59,9 @@ class WinogradSchemaChallenge273(HFTask):
def fewshot_examples(self, k):
# NOTE: `super().fewshot_examples` samples from training docs which are
# not available for this test-set-only dataset.
return random.sample(list(self.test_docs()), k)
rnd = random.Random()
rnd.seed(42)
return rnd.sample(list(self.test_docs()), k)
def doc_to_text(self, doc):
return self.partial_context(doc, doc["options"][doc["label"]])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment