Downloads · 30 days
13
3% of all-time downloads
lmqg/mt5-base-squad-qg
mt5-base-squad-qg is a text generation model from lmqg. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-4.0.
This model is fine-tuned version of google/mt5-base for question generation task on the lmqg/qgsquad (datasetname: default) via lmqg.
Downloads · 30 days
13
3% of all-time downloads
All-time downloads
428
Public
Repo size
7 GB
Likes
0
Public
Click a slice to open those files.
.bin2.3 GB · 99%
From the Hugging Face model README
lmqg/mt5-base-squad-qgThis model is fine-tuned version of google/mt5-base for question generation task on the lmqg/qg_squad (dataset_name: default) via lmqg.
lmqgfrom lmqg import TransformersQG
# initialize model
model = TransformersQG(language="en", model="lmqg/mt5-base-squad-qg")
# model prediction
questions = model.generate_q(list_context="William Turner was an English painter who specialised in watercolour landscapes", list_answer="William Turner")
transformersfrom transformers import pipeline
pipe = pipeline("text2text-generation", "lmqg/mt5-base-squad-qg")
output = pipe("<hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.")
| Score | Type | Dataset | |
|---|---|---|---|
| BERTScore | 90.23 | default | lmqg/qg_squad |
| Bleu_1 | 55.82 | default | lmqg/qg_squad |
| Bleu_2 | 39.49 | default | lmqg/qg_squad |
| Bleu_3 | 29.78 | default | lmqg/qg_squad |
| Bleu_4 | 23.03 | default | lmqg/qg_squad |
| METEOR | 25.18 | default | lmqg/qg_squad |
| MoverScore | 63.6 | default | lmqg/qg_squad |
| ROUGE_L | 50.67 | default | lmqg/qg_squad |
| Dataset | Type | BERTScore | Bleu_4 | METEOR | MoverScore | ROUGE_L | Link |
|---|---|---|---|---|---|---|---|
| lmqg/qg_dequad | default | 11.0 | 0.0 | 1.01 | 44.95 | 3.4 | link |
| lmqg/qg_esquad | default | 60.29 | 0.45 | 4.96 | 48.67 | 17.95 | link |
| lmqg/qg_frquad | default | 16.28 | 0.02 | 1.44 | 45.3 | 4.76 | link |
| lmqg/qg_itquad | default | 40.93 | 0.39 | 3.64 | 47.18 | 12.55 | link |
| lmqg/qg_jaquad | default | 19.8 | 0.08 | 1.77 | 45.59 | 6.17 | link |
| lmqg/qg_koquad | default | 31.82 | 0.43 | 3.05 | 46.64 | 10.23 | link |
| lmqg/qg_ruquad | default | 25.93 | 0.12 | 2.35 | 46.08 | 7.85 | link |
The following hyperparameters were used during fine-tuning:
The full configuration can be found at fine-tuning config file.
@inproceedings{ushio-etal-2022-generative,
title = "{G}enerative {L}anguage {M}odels for {P}aragraph-{L}evel {Q}uestion {G}eneration",
author = "Ushio, Asahi and
Alva-Manchego, Fernando and
Camacho-Collados, Jose",
booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing",
month = dec,
year = "2022",
address = "Abu Dhabi, U.A.E.",
publisher = "Association for Computational Linguistics",
}