"example/27_layernorm2d_fwd/common.hpp" did not exist on "ed3a2e52265e11daa366f47b082141a652b67c58"
Commit 695d633d authored by jeffhsu3's avatar jeffhsu3
Browse files

Merge branch 'master' of https://github.com/EleutherAI/lm-evaluation-harness into pubmedqa

parents 0971cffe 01630657
......@@ -435,11 +435,10 @@ class SGWinogradSchemaChallenge(HFTask):
def doc_to_text(self, doc):
raw_passage = doc["text"]
passage = (
raw_passage[:doc["span2_index"]]
+ "*{}*".format(doc["span2_text"])
+ raw_passage[doc["span2_index"] + len(doc["span2_text"]):]
)
# NOTE: HuggingFace span indices are word-based not character-based.
pre = " ".join(raw_passage.split()[:doc["span2_index"]])
post = raw_passage[len(pre) + len(doc["span2_text"]) + 1:]
passage = pre + " *{}*".format(doc['span2_text']) + post
noun = doc["span1_text"]
pronoun = doc["span2_text"]
text = (
......
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