return"Winograd schema sentence including a either a ___ blank with a missing word, making the pronoun ambiguous, or the same with the word filled in."
@classmethod
@classmethod
defpartial_context(cls,doc,option):
defpartial_context(cls,doc,option):
# Substitute the pronoun in the sentence with the specified option
# Substitute the pronoun in the sentence with the specified option
...
@@ -43,19 +47,6 @@ class Winogrande(HFTask):
...
@@ -43,19 +47,6 @@ class Winogrande(HFTask):
pronoun_loc=doc["sentence"].index("_")+1
pronoun_loc=doc["sentence"].index("_")+1
returndoc["sentence"][pronoun_loc:].strip()
returndoc["sentence"][pronoun_loc:].strip()
deffewshot_description(self):
# TODO: redo description
return"Winograd schema sentence including a either a ___ blank with a missing word, making the pronoun ambiguous, or the same with the word filled in."