eval-tasks / preprocess_multiwoz.py
CultriX's picture
Upload folder using huggingface_hub
6afe180 verified
raw
history blame contribute delete
171 Bytes
def doc_to_text(doc) -> str:
history = ""
if len(doc['turns']) > 0:
history += f"User: {doc['turns'][0]['utterance']}\n"
history += "System: "
return history