utils.py 225 Bytes
Newer Older
1
2
3
4
5
def doc_to_text(doc):
    return "{}\nQuestion: {} True, False or Neither?\nAnswer:".format(
        doc["premise"],
        doc["hypothesis"].strip()
        + ("" if doc["hypothesis"].strip().endswith(".") else "."),
lintangsutawika's avatar
lintangsutawika committed
6
    )