def doc_to_text(doc) -> str: | |
history = "" | |
if len(doc['turns']) > 0: | |
history += f"User: {doc['turns'][0]['utterance']}\n" | |
history += "System: " | |
return history | |
def doc_to_text(doc) -> str: | |
history = "" | |
if len(doc['turns']) > 0: | |
history += f"User: {doc['turns'][0]['utterance']}\n" | |
history += "System: " | |
return history | |