REE / tasks /bibliometric_lab /solution /reference /text_features.py
zzqsb's picture
Release the REE tasks and dataset card.
7f50cd1
Raw History Blame Contribute Delete
320 Bytes
"""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()