初始化项目,由ModelHub XC社区提供模型

Model: fractalego/conversation-qa
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-09 05:31:17 +08:00
commit ddc506b926
8 changed files with 50098 additions and 0 deletions

22
README.md Normal file
View File

@@ -0,0 +1,22 @@
# Conversational QA
This framework is trained on the [CoQA dataset](https://stanfordnlp.github.io/coqa/).
# Install
pip install conversation-qa
# Example
```python
from conversation_qa import QA, Dialogue
qa = QA("fractalego/conversation-qa")
dialogue = Dialogue()
dialogue.add_dialogue_pair("Where was the cat?", "The fence.")
text = "A white cat is on the fence."
query = "What color is it?"
qa.get_answer(text, dialogue.get_text(), query)
```