Transformers
PyTorch
JAX
English
t5
text2text-generation
qa
classification
question
answering
SQuAD
metric
nlg
t5-small
text-generation-inference
Instructions to use ThomasNLG/t5-weighter_cnndm-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ThomasNLG/t5-weighter_cnndm-en with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ThomasNLG/t5-weighter_cnndm-en") model = AutoModelForSeq2SeqLM.from_pretrained("ThomasNLG/t5-weighter_cnndm-en") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Error:"model-index[0].results[0].metrics" is required
t5-weighter_cnndm-en
Model description
This model is a Classifier model based on T5-small, that predicts if a answer / question couple is considered as important fact or not (Is this answer enough relevant to appear in a plausible summary?). It is actually a component of QuestEval metric but can be used independently as it is.
How to use
from transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("ThomasNLG/t5-weighter_cnndm-en")
model = T5ForConditionalGeneration.from_pretrained("ThomasNLG/t5-weighter_cnndm-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 = "{ANSWER} </s> {QUESTION} </s> {CONTEXT}"
Training data
The model was trained on synthetic data as described in Questeval: Summarization asks for fact-based evaluation.
Citation info
@article{scialom2021questeval,
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}
}
- Downloads last month
- 35
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Dataset used to train ThomasNLG/t5-weighter_cnndm-en
Viewer • Updated • 98.2k • 160k • 364