Instructions to use hariprabhakaran45/CTION-QA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hariprabhakaran45/CTION-QA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="hariprabhakaran45/CTION-QA")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hariprabhakaran45/CTION-QA") model = AutoModelForQuestionAnswering.from_pretrained("hariprabhakaran45/CTION-QA") - Notebooks
- Google Colab
- Kaggle
CTION-QA: Question Answering Model
Model Description
A Question Answering (Q&A) model is a transformer-based NLP model trained to understand a given context and accurately extract or generate answers to user questions from that text. It is fine-tuned on the SQuAD 2.0 dataset for extractive question answering.
Performance
| Metric | Score |
|---|---|
| Exact Match | 76.9 |
| F1 Score | 79.8 |
| Context Length | 512 |
Usage
from transformers import pipeline
qa = pipeline(
"question-answering",
model="hariprabhakaran45/CTION-QA"
)
result = qa(
question="Who is the Eiffel Tower named after?",
context="The Eiffel Tower is named after Gustave Eiffel."
)
print(result["answer"])
- Downloads last month
- 2