Views
No views yet
1
2from conversation_qa import QA, Dialogue
3
4qa = QA("fractalego/conversation-qa")
5
6dialogue = Dialogue()
7dialogue.add_dialogue_pair("Where was the cat?", "The fence.")
8
9text = "A white cat is on the fence."
10query = "What color is it?"
11qa.get_answer(text, dialogue.get_text(), query)