model update
Browse files
README.md
CHANGED
@@ -21,7 +21,7 @@ widget:
|
|
21 |
- text: "il <hl> Giappone <hl> è stato il paese più dipendente dal petrolio arabo."
|
22 |
example_title: "Question Generation Example 3"
|
23 |
model-index:
|
24 |
-
- name: lmqg/mt5-small-itquad
|
25 |
results:
|
26 |
- task:
|
27 |
name: Text2text Generation
|
@@ -66,7 +66,7 @@ model-index:
|
|
66 |
value: 61.73
|
67 |
---
|
68 |
|
69 |
-
# Model Card of `lmqg/mt5-small-itquad`
|
70 |
This model is fine-tuned version of [google/mt5-small](https://huggingface.co/google/mt5-small) for question generation task on the [lmqg/qg_itquad](https://huggingface.co/datasets/lmqg/qg_itquad) (dataset_name: default) via [`lmqg`](https://github.com/asahi417/lm-question-generation).
|
71 |
|
72 |
|
@@ -84,7 +84,7 @@ This model is fine-tuned version of [google/mt5-small](https://huggingface.co/go
|
|
84 |
from lmqg import TransformersQG
|
85 |
|
86 |
# initialize model
|
87 |
-
model = TransformersQG(language="it", model="lmqg/mt5-small-itquad")
|
88 |
|
89 |
# model prediction
|
90 |
questions = model.generate_q(list_context="Dopo il 1971 , l' OPEC ha tardato ad adeguare i prezzi per riflettere tale deprezzamento.", list_answer="Dopo il 1971")
|
@@ -95,7 +95,7 @@ questions = model.generate_q(list_context="Dopo il 1971 , l' OPEC ha tardato ad
|
|
95 |
```python
|
96 |
from transformers import pipeline
|
97 |
|
98 |
-
pipe = pipeline("text2text-generation", "lmqg/mt5-small-itquad")
|
99 |
output = pipe("<hl> Dopo il 1971 <hl> , l' OPEC ha tardato ad adeguare i prezzi per riflettere tale deprezzamento.")
|
100 |
|
101 |
```
|
@@ -103,7 +103,7 @@ output = pipe("<hl> Dopo il 1971 <hl> , l' OPEC ha tardato ad adeguare i prezzi
|
|
103 |
## Evaluation
|
104 |
|
105 |
|
106 |
-
- ***Metric (Question Generation)***: [raw metric file](https://huggingface.co/lmqg/mt5-small-itquad/raw/main/eval/metric.first.sentence.paragraph_answer.question.lmqg_qg_itquad.default.json)
|
107 |
|
108 |
| | Score | Type | Dataset |
|
109 |
|:-----------|--------:|:--------|:-----------------------------------------------------------------|
|
@@ -117,7 +117,7 @@ output = pipe("<hl> Dopo il 1971 <hl> , l' OPEC ha tardato ad adeguare i prezzi
|
|
117 |
| ROUGE_L | 21.93 | default | [lmqg/qg_itquad](https://huggingface.co/datasets/lmqg/qg_itquad) |
|
118 |
|
119 |
|
120 |
-
- ***Metric (Question & Answer Generation)***: QAG metrics are computed with *the gold answer* and generated question on it for this model, as the model cannot provide an answer. [raw metric file](https://huggingface.co/lmqg/mt5-small-itquad/raw/main/eval/metric.first.answer.paragraph.questions_answers.lmqg_qg_itquad.default.json)
|
121 |
|
122 |
| | Score | Type | Dataset |
|
123 |
|:--------------------------------|--------:|:--------|:-----------------------------------------------------------------|
|
@@ -149,7 +149,7 @@ The following hyperparameters were used during fine-tuning:
|
|
149 |
- gradient_accumulation_steps: 4
|
150 |
- label_smoothing: 0.0
|
151 |
|
152 |
-
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mt5-small-itquad/raw/main/trainer_config.json).
|
153 |
|
154 |
## Citation
|
155 |
```
|
|
|
21 |
- text: "il <hl> Giappone <hl> è stato il paese più dipendente dal petrolio arabo."
|
22 |
example_title: "Question Generation Example 3"
|
23 |
model-index:
|
24 |
+
- name: lmqg/mt5-small-itquad-qg
|
25 |
results:
|
26 |
- task:
|
27 |
name: Text2text Generation
|
|
|
66 |
value: 61.73
|
67 |
---
|
68 |
|
69 |
+
# Model Card of `lmqg/mt5-small-itquad-qg`
|
70 |
This model is fine-tuned version of [google/mt5-small](https://huggingface.co/google/mt5-small) for question generation task on the [lmqg/qg_itquad](https://huggingface.co/datasets/lmqg/qg_itquad) (dataset_name: default) via [`lmqg`](https://github.com/asahi417/lm-question-generation).
|
71 |
|
72 |
|
|
|
84 |
from lmqg import TransformersQG
|
85 |
|
86 |
# initialize model
|
87 |
+
model = TransformersQG(language="it", model="lmqg/mt5-small-itquad-qg")
|
88 |
|
89 |
# model prediction
|
90 |
questions = model.generate_q(list_context="Dopo il 1971 , l' OPEC ha tardato ad adeguare i prezzi per riflettere tale deprezzamento.", list_answer="Dopo il 1971")
|
|
|
95 |
```python
|
96 |
from transformers import pipeline
|
97 |
|
98 |
+
pipe = pipeline("text2text-generation", "lmqg/mt5-small-itquad-qg")
|
99 |
output = pipe("<hl> Dopo il 1971 <hl> , l' OPEC ha tardato ad adeguare i prezzi per riflettere tale deprezzamento.")
|
100 |
|
101 |
```
|
|
|
103 |
## Evaluation
|
104 |
|
105 |
|
106 |
+
- ***Metric (Question Generation)***: [raw metric file](https://huggingface.co/lmqg/mt5-small-itquad-qg/raw/main/eval/metric.first.sentence.paragraph_answer.question.lmqg_qg_itquad.default.json)
|
107 |
|
108 |
| | Score | Type | Dataset |
|
109 |
|:-----------|--------:|:--------|:-----------------------------------------------------------------|
|
|
|
117 |
| ROUGE_L | 21.93 | default | [lmqg/qg_itquad](https://huggingface.co/datasets/lmqg/qg_itquad) |
|
118 |
|
119 |
|
120 |
+
- ***Metric (Question & Answer Generation)***: QAG metrics are computed with *the gold answer* and generated question on it for this model, as the model cannot provide an answer. [raw metric file](https://huggingface.co/lmqg/mt5-small-itquad-qg/raw/main/eval/metric.first.answer.paragraph.questions_answers.lmqg_qg_itquad.default.json)
|
121 |
|
122 |
| | Score | Type | Dataset |
|
123 |
|:--------------------------------|--------:|:--------|:-----------------------------------------------------------------|
|
|
|
149 |
- gradient_accumulation_steps: 4
|
150 |
- label_smoothing: 0.0
|
151 |
|
152 |
+
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mt5-small-itquad-qg/raw/main/trainer_config.json).
|
153 |
|
154 |
## Citation
|
155 |
```
|