fractalego commited on
Commit
f635350
1 Parent(s): 8b92188

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -3
README.md CHANGED
@@ -1,3 +1,22 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Conversational QA
2
+ This framework is trained on the [CoQA dataset](https://stanfordnlp.github.io/coqa/).
3
+
4
+
5
+ # Install
6
+ pip install conversation_qa
7
+
8
+
9
+ # Example
10
+ ```python
11
+
12
+ from conversation_qa import QA, Dialogue
13
+
14
+ qa = QA("fractalego/conversation-qa")
15
+
16
+ dialogue = Dialogue()
17
+ dialogue.add_dialogue_pair("Where was the cat?", "The fence.")
18
+
19
+ text = "A white cat is on the fence."
20
+ query = "What color is it?"
21
+ qa.get_answer(text, dialogue.get_text(), query)
22
+ ```