asahi417 commited on
Commit
3197425
1 Parent(s): 649297b

model update

Browse files
Files changed (1) hide show
  1. README.md +13 -13
README.md CHANGED
@@ -7,21 +7,21 @@ metrics:
7
  - rouge-l
8
  - bertscore
9
  - moverscore
10
- language: en
11
  datasets:
12
  - lmqg/qg_dequad
13
  pipeline_tag: text2text-generation
14
  tags:
15
  - question generation
16
  widget:
17
- - text: "<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: "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: "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/mt5-base-dequad
25
  results:
26
  - task:
27
  name: Text2text Generation
@@ -48,13 +48,13 @@ model-index:
48
  value: 55.73
49
  ---
50
 
51
- # Model Card of `lmqg/mt5-base-dequad`
52
  This model is fine-tuned version of [google/mt5-base](https://huggingface.co/google/mt5-base) for question generation task on the [lmqg/qg_dequad](https://huggingface.co/datasets/lmqg/qg_dequad) (dataset_name: default) via [`lmqg`](https://github.com/asahi417/lm-question-generation).
53
 
54
 
55
  ### Overview
56
  - **Language model:** [google/mt5-base](https://huggingface.co/google/mt5-base)
57
- - **Language:** en
58
  - **Training data:** [lmqg/qg_dequad](https://huggingface.co/datasets/lmqg/qg_dequad) (default)
59
  - **Online Demo:** [https://autoqg.net/](https://autoqg.net/)
60
  - **Repository:** [https://github.com/asahi417/lm-question-generation](https://github.com/asahi417/lm-question-generation)
@@ -66,10 +66,10 @@ This model is fine-tuned version of [google/mt5-base](https://huggingface.co/goo
66
  from lmqg import TransformersQG
67
 
68
  # initialize model
69
- model = TransformersQG(language="en", model="lmqg/mt5-base-dequad")
70
 
71
  # model prediction
72
- questions = model.generate_q(list_context="William Turner was an English painter who specialised in watercolour landscapes", list_answer="William Turner")
73
 
74
  ```
75
 
@@ -77,15 +77,15 @@ questions = model.generate_q(list_context="William Turner was an English painter
77
  ```python
78
  from transformers import pipeline
79
 
80
- pipe = pipeline("text2text-generation", "lmqg/mt5-base-dequad")
81
- output = pipe("<hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.")
82
 
83
  ```
84
 
85
  ## Evaluation
86
 
87
 
88
- - ***Metric (Question Generation)***: [raw metric file](https://huggingface.co/lmqg/mt5-base-dequad/raw/main/eval/metric.first.sentence.paragraph_answer.question.lmqg_qg_dequad.default.json)
89
 
90
  | | Score | Type | Dataset |
91
  |:-----------|--------:|:--------|:-----------------------------------------------------------------|
@@ -119,7 +119,7 @@ The following hyperparameters were used during fine-tuning:
119
  - gradient_accumulation_steps: 16
120
  - label_smoothing: 0.15
121
 
122
- The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mt5-base-dequad/raw/main/trainer_config.json).
123
 
124
  ## Citation
125
  ```
 
7
  - rouge-l
8
  - bertscore
9
  - moverscore
10
+ language: de
11
  datasets:
12
  - lmqg/qg_dequad
13
  pipeline_tag: text2text-generation
14
  tags:
15
  - question generation
16
  widget:
17
+ - text: "Empfangs- und Sendeantenne sollen in ihrer Polarisation übereinstimmen, andernfalls <hl> wird die Signalübertragung stark gedämpft. <hl>"
18
  example_title: "Question Generation Example 1"
19
+ - text: "das erste weltweit errichtete Hermann Brehmer <hl> 1855 <hl> im niederschlesischen ''Görbersdorf'' (heute Sokołowsko, Polen)."
20
  example_title: "Question Generation Example 2"
21
+ - text: "Er muss Zyperngrieche sein und wird direkt für <hl> fünf Jahre <hl> gewählt (Art. 43 Abs. 1 der Verfassung) und verfügt über weitreichende Exekutivkompetenzen."
22
  example_title: "Question Generation Example 3"
23
  model-index:
24
+ - name: lmqg/mt5-base-dequad-qg
25
  results:
26
  - task:
27
  name: Text2text Generation
 
48
  value: 55.73
49
  ---
50
 
51
+ # Model Card of `lmqg/mt5-base-dequad-qg`
52
  This model is fine-tuned version of [google/mt5-base](https://huggingface.co/google/mt5-base) for question generation task on the [lmqg/qg_dequad](https://huggingface.co/datasets/lmqg/qg_dequad) (dataset_name: default) via [`lmqg`](https://github.com/asahi417/lm-question-generation).
53
 
54
 
55
  ### Overview
56
  - **Language model:** [google/mt5-base](https://huggingface.co/google/mt5-base)
57
+ - **Language:** de
58
  - **Training data:** [lmqg/qg_dequad](https://huggingface.co/datasets/lmqg/qg_dequad) (default)
59
  - **Online Demo:** [https://autoqg.net/](https://autoqg.net/)
60
  - **Repository:** [https://github.com/asahi417/lm-question-generation](https://github.com/asahi417/lm-question-generation)
 
66
  from lmqg import TransformersQG
67
 
68
  # initialize model
69
+ model = TransformersQG(language="de", model="lmqg/mt5-base-dequad-qg")
70
 
71
  # model prediction
72
+ questions = model.generate_q(list_context="das erste weltweit errichtete Hermann Brehmer 1855 im niederschlesischen ''Görbersdorf'' (heute Sokołowsko, Polen).", list_answer="1855")
73
 
74
  ```
75
 
 
77
  ```python
78
  from transformers import pipeline
79
 
80
+ pipe = pipeline("text2text-generation", "lmqg/mt5-base-dequad-qg")
81
+ output = pipe("Empfangs- und Sendeantenne sollen in ihrer Polarisation übereinstimmen, andernfalls <hl> wird die Signalübertragung stark gedämpft. <hl>")
82
 
83
  ```
84
 
85
  ## Evaluation
86
 
87
 
88
+ - ***Metric (Question Generation)***: [raw metric file](https://huggingface.co/lmqg/mt5-base-dequad-qg/raw/main/eval/metric.first.sentence.paragraph_answer.question.lmqg_qg_dequad.default.json)
89
 
90
  | | Score | Type | Dataset |
91
  |:-----------|--------:|:--------|:-----------------------------------------------------------------|
 
119
  - gradient_accumulation_steps: 16
120
  - label_smoothing: 0.15
121
 
122
+ The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mt5-base-dequad-qg/raw/main/trainer_config.json).
123
 
124
  ## Citation
125
  ```