Downloads · 30 days
19
3% of all-time downloads
AndyChiang/Pre-CoFactv3-Question-Answering
Pre-CoFactv3-Question-Answering is a question answering model from AndyChiang. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as mit.
This is a Question Answering model for AAAI 2024 Workshop Paper: “Team Trifecta at Factify5WQA: Setting the Standard in Fact Verification with Fine-Tuning”
Downloads · 30 days
19
3% of all-time downloads
All-time downloads
694
Public
Repo size
3.5 GB
Likes
1
Public
Click a slice to open those files.
.bin1.7 GB · 99%
From the Hugging Face model README
This is a Question Answering model for AAAI 2024 Workshop Paper: “Team Trifecta at Factify5WQA: Setting the Standard in Fact Verification with Fine-Tuning”
Its input are question and context, and output is the answers derived from the context. It is fine-tuned by FACTIFY5WQA dataset based on microsoft/deberta-v3-large model.
For more details, you can see our paper or GitHub.
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
model = AutoModelForQuestionAnswering.from_pretrained("AndyChiang/Pre-CoFactv3-Question-Answering")
tokenizer = AutoTokenizer.from_pretrained("AndyChiang/Pre-CoFactv3-Question-Answering")
QA = pipeline("question-answering", model=model, tokenizer=tokenizer)
QA_input = {
'context': "Micah Richards spent an entire season at Aston Vila without playing a single game.",
'question': "Who spent an entire season at aston vila without playing a single game?",
}
answer = QA(QA_input)
print(answer)
We utilize the dataset FACTIFY5WQA provided by the AAAI-24 Workshop Factify 3.0.
This dataset is designed for fact verification, with the task of determining the veracity of a claim based on the given evidence.
| Training | Validation | Testing | Total | |
|---|---|---|---|---|
| Support | 3500 | 750 | 750 | 5000 |
| Neutral | 3500 | 750 | 750 | 5000 |
| Refute | 3500 | 750 | 750 | 5000 |
| Total | 10500 | 2250 | 2250 | 15000 |
Fine-tuning is conducted by the Hugging Face Trainer API on the Question Answering task.
The following hyperparameters were used during training:
We employ BLEU scores for both claim answer and evidence answer, taking the average of the two as the metric.
| Claim Answer | Evidence Answer | Average |
|---|---|---|
| 0.5248 | 0.3963 | 0.4605 |
AndyChiang/Pre-CoFactv3-Text-Classification