asahi417 commited on
Commit
ffb0b5b
1 Parent(s): fbe34e8

model update

Browse files
Files changed (1) hide show
  1. README.md +7 -7
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/mbart-large-cc25-itquad
25
  results:
26
  - task:
27
  name: Text2text Generation
@@ -66,7 +66,7 @@ model-index:
66
  value: 61.83
67
  ---
68
 
69
- # Model Card of `lmqg/mbart-large-cc25-itquad`
70
  This model is fine-tuned version of [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25) 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 [facebook/mbart-large-cc25](https://huggingf
84
  from lmqg import TransformersQG
85
 
86
  # initialize model
87
- model = TransformersQG(language="it", model="lmqg/mbart-large-cc25-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/mbart-large-cc25-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/mbart-large-cc25-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.69 | 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/mbart-large-cc25-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: 16
150
  - label_smoothing: 0.15
151
 
152
- The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mbart-large-cc25-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/mbart-large-cc25-itquad-qg
25
  results:
26
  - task:
27
  name: Text2text Generation
 
66
  value: 61.83
67
  ---
68
 
69
+ # Model Card of `lmqg/mbart-large-cc25-itquad-qg`
70
  This model is fine-tuned version of [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25) 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/mbart-large-cc25-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/mbart-large-cc25-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/mbart-large-cc25-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.69 | 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/mbart-large-cc25-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: 16
150
  - label_smoothing: 0.15
151
 
152
+ The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mbart-large-cc25-itquad-qg/raw/main/trainer_config.json).
153
 
154
  ## Citation
155
  ```