File size: 320 Bytes
7f50cd1 | 1 2 3 4 5 6 7 8 | """Task input adaptation for the standard TF-IDF text-regression fallback."""
def paper_text(document):
"""Keep SciRepEval's title and abstract fields; whitespace separates fields."""
return "\n".join(str(document[field]) for field in ("title", "abstract")
if document.get(field)).strip()
|