"""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()