Downloads · 30 days
611
0% of all-time downloads
ThomasNLG/t5-qg_squad1-en
t5-qg_squad1-en is a machine learning model from ThomasNLG. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This model is a Question Generation model based on T5-small. It is actually a component of QuestEval metric but can be used independently as it is, for QG only.
Downloads · 30 days
611
0% of all-time downloads
All-time downloads
180K
Public
Repo size
4.5 GB
Likes
1
Public
Click a slice to open those files.
.bin892 MB · 50%
From the Hugging Face model README
This model is a Question Generation model based on T5-small. It is actually a component of QuestEval metric but can be used independently as it is, for QG only.
from transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("ThomasNLG/t5-qg_squad1-en")
model = T5ForConditionalGeneration.from_pretrained("ThomasNLG/t5-qg_squad1-en")
You can play with the model using the inference API, the text input format should follow this template (accordingly to the training stage of the model):
text_input = "sv1 </s> {ANSWER} </s> {CONTEXT}"
The model was trained on SQuAD.
@article{scialom2020QuestEval,
title={QuestEval: Summarization Asks for Fact-based Evaluation},
author={Scialom, Thomas and Dray, Paul-Alexis and Gallinari, Patrick and Lamprier, Sylvain and Piwowarski, Benjamin and Staiano, Jacopo and Wang, Alex},
journal={arXiv preprint arXiv:2103.12693},
year={2021}
}