model update
Browse files
README.md
ADDED
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
license: cc-by-4.0
|
4 |
+
metrics:
|
5 |
+
- bleu4
|
6 |
+
- meteor
|
7 |
+
- rouge-l
|
8 |
+
- bertscore
|
9 |
+
- moverscore
|
10 |
+
language: en
|
11 |
+
datasets:
|
12 |
+
- lmqg/qg_subjqa
|
13 |
+
pipeline_tag: text2text-generation
|
14 |
+
tags:
|
15 |
+
- question generation
|
16 |
+
widget:
|
17 |
+
- text: "generate question: <hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records."
|
18 |
+
example_title: "Question Generation Example 1"
|
19 |
+
- text: "generate question: Beyonce further expanded her acting career, starring as blues singer <hl> Etta James <hl> in the 2008 musical biopic, Cadillac Records."
|
20 |
+
example_title: "Question Generation Example 2"
|
21 |
+
- text: "generate question: Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, <hl> Cadillac Records <hl> ."
|
22 |
+
example_title: "Question Generation Example 3"
|
23 |
+
model-index:
|
24 |
+
- name: lmqg/t5-large-subjqa-grocery
|
25 |
+
results:
|
26 |
+
- task:
|
27 |
+
name: Text2text Generation
|
28 |
+
type: text2text-generation
|
29 |
+
dataset:
|
30 |
+
name: lmqg/qg_subjqa
|
31 |
+
type: grocery
|
32 |
+
args: grocery
|
33 |
+
metrics:
|
34 |
+
- name: BLEU4
|
35 |
+
type: bleu4
|
36 |
+
value: 0.011335292363312374
|
37 |
+
- name: ROUGE-L
|
38 |
+
type: rouge-l
|
39 |
+
value: 0.1740279794913675
|
40 |
+
- name: METEOR
|
41 |
+
type: meteor
|
42 |
+
value: 0.20641848238590096
|
43 |
+
- name: BERTScore
|
44 |
+
type: bertscore
|
45 |
+
value: 0.9139250615437825
|
46 |
+
- name: MoverScore
|
47 |
+
type: moverscore
|
48 |
+
value: 0.6341318883185333
|
49 |
+
- task:
|
50 |
+
name: Text2text Generation
|
51 |
+
type: text2text-generation
|
52 |
+
dataset:
|
53 |
+
name: lmqg/qg_squad
|
54 |
+
type: default
|
55 |
+
args: default
|
56 |
+
metrics:
|
57 |
+
- name: BLEU4
|
58 |
+
type: bleu4
|
59 |
+
value: 0.266398028296004
|
60 |
+
- name: ROUGE-L
|
61 |
+
type: rouge-l
|
62 |
+
value: 0.5400055833410796
|
63 |
+
- name: METEOR
|
64 |
+
type: meteor
|
65 |
+
value: 0.26916696517436683
|
66 |
+
- name: BERTScore
|
67 |
+
type: bertscore
|
68 |
+
value: 0.9097899012334792
|
69 |
+
- name: MoverScore
|
70 |
+
type: moverscore
|
71 |
+
value: 0.6514236028343862
|
72 |
+
---
|
73 |
+
|
74 |
+
# Language Models Fine-tuning on Question Generation: `lmqg/t5-large-subjqa-grocery`
|
75 |
+
This model is fine-tuned version of [lmqg/t5-large-squad](https://huggingface.co/lmqg/t5-large-squad) for question generation task on the
|
76 |
+
[lmqg/qg_subjqa](https://huggingface.co/datasets/lmqg/qg_subjqa) (dataset_name: grocery).
|
77 |
+
This model is continuously fine-tuned with [lmqg/t5-large-squad](https://huggingface.co/lmqg/t5-large-squad).
|
78 |
+
|
79 |
+
### Overview
|
80 |
+
- **Language model:** [lmqg/t5-large-squad](https://huggingface.co/lmqg/t5-large-squad)
|
81 |
+
- **Language:** en
|
82 |
+
- **Training data:** [lmqg/qg_subjqa](https://huggingface.co/datasets/lmqg/qg_subjqa) (grocery)
|
83 |
+
- **Online Demo:** [https://autoqg.net/](https://autoqg.net/)
|
84 |
+
- **Repository:** [https://github.com/asahi417/lm-question-generation](https://github.com/asahi417/lm-question-generation)
|
85 |
+
- **Paper:** [TBA](TBA)
|
86 |
+
|
87 |
+
### Usage
|
88 |
+
```python
|
89 |
+
|
90 |
+
from transformers import pipeline
|
91 |
+
|
92 |
+
model_path = 'lmqg/t5-large-subjqa-grocery'
|
93 |
+
pipe = pipeline("text2text-generation", model_path)
|
94 |
+
|
95 |
+
# Question Generation
|
96 |
+
input_text = 'generate question: <hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.'
|
97 |
+
question = pipe(input_text)
|
98 |
+
```
|
99 |
+
|
100 |
+
## Evaluation Metrics
|
101 |
+
|
102 |
+
|
103 |
+
### Metrics
|
104 |
+
|
105 |
+
| Dataset | Type | BLEU4 | ROUGE-L | METEOR | BERTScore | MoverScore | Link |
|
106 |
+
|:--------|:-----|------:|--------:|-------:|----------:|-----------:|-----:|
|
107 |
+
| [lmqg/qg_subjqa](https://huggingface.co/datasets/lmqg/qg_subjqa) | grocery | 0.011335292363312374 | 0.1740279794913675 | 0.20641848238590096 | 0.9139250615437825 | 0.6341318883185333 | [link](https://huggingface.co/lmqg/t5-large-subjqa-grocery/raw/main/eval/metric.first.sentence.paragraph_answer.question.lmqg_qg_subjqa.grocery.json) |
|
108 |
+
|
109 |
+
|
110 |
+
|
111 |
+
### Out-of-domain Metrics
|
112 |
+
|
113 |
+
| Dataset | Type | BLEU4 | ROUGE-L | METEOR | BERTScore | MoverScore | Link |
|
114 |
+
|:--------|:-----|------:|--------:|-------:|----------:|-----------:|-----:|
|
115 |
+
| [lmqg/qg_squad](https://huggingface.co/datasets/lmqg/qg_squad) | default | 0.266398028296004 | 0.5400055833410796 | 0.26916696517436683 | 0.9097899012334792 | 0.6514236028343862 | [link](https://huggingface.co/lmqg/t5-large-subjqa-grocery/raw/main/eval_ood/metric.first.sentence.paragraph_answer.question.lmqg_qg_squad.default.json) |
|
116 |
+
|
117 |
+
|
118 |
+
## Training hyperparameters
|
119 |
+
|
120 |
+
The following hyperparameters were used during fine-tuning:
|
121 |
+
- dataset_path: lmqg/qg_subjqa
|
122 |
+
- dataset_name: grocery
|
123 |
+
- input_types: ['paragraph_answer']
|
124 |
+
- output_types: ['question']
|
125 |
+
- prefix_types: ['qg']
|
126 |
+
- model: lmqg/t5-large-squad
|
127 |
+
- max_length: 512
|
128 |
+
- max_length_output: 32
|
129 |
+
- epoch: 3
|
130 |
+
- batch: 16
|
131 |
+
- lr: 5e-05
|
132 |
+
- fp16: False
|
133 |
+
- random_seed: 1
|
134 |
+
- gradient_accumulation_steps: 32
|
135 |
+
- label_smoothing: 0.15
|
136 |
+
|
137 |
+
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/t5-large-subjqa-grocery/raw/main/trainer_config.json).
|
138 |
+
|
139 |
+
## Citation
|
140 |
+
TBA
|