model update
Browse files
README.md
CHANGED
@@ -19,7 +19,7 @@ widget:
|
|
19 |
- text: "extract answers: Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records. <hl> Her performance in the film received praise from critics, and she garnered several nominations for her portrayal of James, including a Satellite Award nomination for Best Supporting Actress, and a NAACP Image Award nomination for Outstanding Supporting Actress. <hl>"
|
20 |
example_title: "Answering Extraction Example 2"
|
21 |
model-index:
|
22 |
-
- name: lmqg/t5-small-squad-
|
23 |
results:
|
24 |
- task:
|
25 |
name: Text2text Generation
|
@@ -52,7 +52,7 @@ model-index:
|
|
52 |
value: 56.15
|
53 |
---
|
54 |
|
55 |
-
# Model Card of `lmqg/t5-small-squad-
|
56 |
This model is fine-tuned version of [t5-small](https://huggingface.co/t5-small) for answer extraction on the [lmqg/qg_squad](https://huggingface.co/datasets/lmqg/qg_squad) (dataset_name: default) via [`lmqg`](https://github.com/asahi417/lm-question-generation).
|
57 |
|
58 |
|
@@ -70,7 +70,7 @@ This model is fine-tuned version of [t5-small](https://huggingface.co/t5-small)
|
|
70 |
from lmqg import TransformersQG
|
71 |
|
72 |
# initialize model
|
73 |
-
model = TransformersQG(language="en", model="lmqg/t5-small-squad-
|
74 |
|
75 |
# model prediction
|
76 |
answers = model.generate_a("William Turner was an English painter who specialised in watercolour landscapes")
|
@@ -81,7 +81,7 @@ answers = model.generate_a("William Turner was an English painter who specialise
|
|
81 |
```python
|
82 |
from transformers import pipeline
|
83 |
|
84 |
-
pipe = pipeline("text2text-generation", "lmqg/t5-small-squad-
|
85 |
output = pipe("extract answers: <hl> Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records. <hl> Her performance in the film received praise from critics, and she garnered several nominations for her portrayal of James, including a Satellite Award nomination for Best Supporting Actress, and a NAACP Image Award nomination for Outstanding Supporting Actress.")
|
86 |
|
87 |
```
|
@@ -89,7 +89,7 @@ output = pipe("extract answers: <hl> Beyonce further expanded her acting career,
|
|
89 |
## Evaluation
|
90 |
|
91 |
|
92 |
-
- ***Metric (Answer Extraction)***: [raw metric file](https://huggingface.co/lmqg/t5-small-squad-
|
93 |
|
94 |
| | Score | Type | Dataset |
|
95 |
|:-----------------|--------:|:--------|:---------------------------------------------------------------|
|
@@ -125,7 +125,7 @@ The following hyperparameters were used during fine-tuning:
|
|
125 |
- gradient_accumulation_steps: 1
|
126 |
- label_smoothing: 0.15
|
127 |
|
128 |
-
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/t5-small-squad-
|
129 |
|
130 |
## Citation
|
131 |
```
|
|
|
19 |
- text: "extract answers: Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records. <hl> Her performance in the film received praise from critics, and she garnered several nominations for her portrayal of James, including a Satellite Award nomination for Best Supporting Actress, and a NAACP Image Award nomination for Outstanding Supporting Actress. <hl>"
|
20 |
example_title: "Answering Extraction Example 2"
|
21 |
model-index:
|
22 |
+
- name: lmqg/t5-small-squad-ae
|
23 |
results:
|
24 |
- task:
|
25 |
name: Text2text Generation
|
|
|
52 |
value: 56.15
|
53 |
---
|
54 |
|
55 |
+
# Model Card of `lmqg/t5-small-squad-ae`
|
56 |
This model is fine-tuned version of [t5-small](https://huggingface.co/t5-small) for answer extraction on the [lmqg/qg_squad](https://huggingface.co/datasets/lmqg/qg_squad) (dataset_name: default) via [`lmqg`](https://github.com/asahi417/lm-question-generation).
|
57 |
|
58 |
|
|
|
70 |
from lmqg import TransformersQG
|
71 |
|
72 |
# initialize model
|
73 |
+
model = TransformersQG(language="en", model="lmqg/t5-small-squad-ae")
|
74 |
|
75 |
# model prediction
|
76 |
answers = model.generate_a("William Turner was an English painter who specialised in watercolour landscapes")
|
|
|
81 |
```python
|
82 |
from transformers import pipeline
|
83 |
|
84 |
+
pipe = pipeline("text2text-generation", "lmqg/t5-small-squad-ae")
|
85 |
output = pipe("extract answers: <hl> Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records. <hl> Her performance in the film received praise from critics, and she garnered several nominations for her portrayal of James, including a Satellite Award nomination for Best Supporting Actress, and a NAACP Image Award nomination for Outstanding Supporting Actress.")
|
86 |
|
87 |
```
|
|
|
89 |
## Evaluation
|
90 |
|
91 |
|
92 |
+
- ***Metric (Answer Extraction)***: [raw metric file](https://huggingface.co/lmqg/t5-small-squad-ae/raw/main/eval/metric.first.answer.paragraph_sentence.answer.lmqg_qg_squad.default.json)
|
93 |
|
94 |
| | Score | Type | Dataset |
|
95 |
|:-----------------|--------:|:--------|:---------------------------------------------------------------|
|
|
|
125 |
- gradient_accumulation_steps: 1
|
126 |
- label_smoothing: 0.15
|
127 |
|
128 |
+
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/t5-small-squad-ae/raw/main/trainer_config.json).
|
129 |
|
130 |
## Citation
|
131 |
```
|