Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: en
|
3 |
+
tags:
|
4 |
+
- qa
|
5 |
+
- classification
|
6 |
+
- question
|
7 |
+
- answering
|
8 |
+
- SQuAD
|
9 |
+
- metric
|
10 |
+
- nlg
|
11 |
+
- t5-small
|
12 |
+
license: mit
|
13 |
+
datasets:
|
14 |
+
- squad
|
15 |
+
- cnndm
|
16 |
+
model-index:
|
17 |
+
- name: t5-weighter_cnndm-en
|
18 |
+
results:
|
19 |
+
- task:
|
20 |
+
name: Classification
|
21 |
+
type: Question Weighter
|
22 |
+
widget:
|
23 |
+
- text: "Buckingham Palace </s> Where was the Changing of the Guard held? </s> This is the embarrassing moment a Buckingham Palace guard slipped and fell on a manhole cover in front of hundreds of shocked tourists as he took up position in his sentry box. [...] The Guard comprises two detachments, one each for Buckingham Palace and St James’s Palace, under the command of the Captain of The Queen’s Guard."
|
24 |
+
---
|
25 |
+
# t5-weighter_cnndm-en
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
This model is a *Classfier* model based on T5-small, that predict if a question is asking about important facts or not.
|
29 |
+
It is actually a component of [QuestEval](https://github.com/recitalAI/QuestEval) metric but can be used independently as it is.
|
30 |
+
|
31 |
+
|
32 |
+
## How to use
|
33 |
+
```python
|
34 |
+
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
35 |
+
|
36 |
+
tokenizer = T5Tokenizer.from_pretrained("ThomasNLG/t5-weighter_cnndm-en")
|
37 |
+
|
38 |
+
model = T5ForConditionalGeneration.from_pretrained("ThomasNLG/t5-weighter_cnndm-en")
|
39 |
+
```
|
40 |
+
|
41 |
+
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):
|
42 |
+
|
43 |
+
`text_input = "{ANSWER} </s> {QUESTION} </s> {CONTEXT}"`
|
44 |
+
|
45 |
+
|
46 |
+
## Training data
|
47 |
+
The model was trained on synthetic data as described in [Questeval: Summarization asks for fact-based evaluation](https://arxiv.org/abs/2103.12693).
|
48 |
+
|
49 |
+
### Citation info
|
50 |
+
|
51 |
+
```bibtex
|
52 |
+
@article{scialom2021questeval,
|
53 |
+
title={Questeval: Summarization asks for fact-based evaluation},
|
54 |
+
author={Scialom, Thomas and Dray, Paul-Alexis and Gallinari, Patrick and Lamprier, Sylvain and Piwowarski, Benjamin and Staiano, Jacopo and Wang, Alex},
|
55 |
+
journal={arXiv preprint arXiv:2103.12693},
|
56 |
+
year={2021}
|
57 |
+
}
|
58 |
+
```
|