1 Star 0 Fork 0

modelee / t5-qa_squad2neg-en

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
language tags license datasets model-index widget
en
qa
question
answering
SQuAD
metric
nlg
t5-small
mit
squad_v2
name results
t5-qa_squad2neg-en
task
name type
Question Answering
extractive-qa
text
Who was Louis 14? Louis 14 was a French King.

t5-qa_squad2neg-en

Model description

This model is a Question Answering model based on T5-small. It is actually a component of QuestEval metric but can be used independently as it is, for QA only.

How to use

from transformers import T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("ThomasNLG/t5-qa_squad2neg-en")

model = T5ForConditionalGeneration.from_pretrained("ThomasNLG/t5-qa_squad2neg-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 = "{QUESTION} </s> {CONTEXT}"

Training data

The model was trained on:

  • SQuAD-v2
  • SQuAD-v2 neg: in addition to the training data of SQuAD-v2, for each answerable example, a negative sampled example has been added with the label unanswerable to help the model learning when the question is not answerable given the context. For more details, see the paper.

Citation info

@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}
}

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/modelee/t5-qa_squad2neg-en.git
git@gitee.com:modelee/t5-qa_squad2neg-en.git
modelee
t5-qa_squad2neg-en
t5-qa_squad2neg-en
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891