applied-ai-018's picture
Add files using upload-large-folder tool
484d12e verified
raw
history blame contribute delete
232 Bytes
def doc_to_text(doc) -> str:
return "{}\nQuestion: {} True, False or Neither?\nAnswer:".format(
doc["premise"],
doc["hypothesis"].strip()
+ ("" if doc["hypothesis"].strip().endswith(".") else "."),
)