lmqg / mt5-small-frquad-qg-ae

huggingface.co
Total runs: 45
24-hour runs: 0
7-day runs: 21
30-day runs: 22
Model's Last Updated: January 18 2023
text-generation

Introduction of mt5-small-frquad-qg-ae

Model Details of mt5-small-frquad-qg-ae

Model Card of lmqg/mt5-small-frquad-qg-ae

This model is fine-tuned version of google/mt5-small for question generation and answer extraction jointly on the lmqg/qg_frquad (dataset_name: default) via lmqg .

Overview
Usage
from lmqg import TransformersQG

# initialize model
model = TransformersQG(language="fr", model="lmqg/mt5-small-frquad-qg-ae")

# model prediction
question_answer_pairs = model.generate_qa("Créateur » (Maker), lui aussi au singulier, « le Suprême Berger » (The Great Shepherd) ; de l'autre, des réminiscences de la théologie de l'Antiquité : le tonnerre, voix de Jupiter, « Et souvent ta voix gronde en un tonnerre terrifiant », etc.")
  • With transformers
from transformers import pipeline

pipe = pipeline("text2text-generation", "lmqg/mt5-small-frquad-qg-ae")

# answer extraction
answer = pipe("generate question: Créateur » (Maker), lui aussi au singulier, « <hl> le Suprême Berger <hl> » (The Great Shepherd) ; de l'autre, des réminiscences de la théologie de l'Antiquité : le tonnerre, voix de Jupiter, « Et souvent ta voix gronde en un tonnerre terrifiant », etc.")

# question generation
question = pipe("extract answers: Pourtant, la strophe spensérienne, utilisée cinq fois avant que ne commence le chœur, constitue en soi un vecteur dont les répétitions structurelles, selon Ricks, relèvent du pur lyrisme tout en constituant une menace potentielle. Après les huit sages pentamètres iambiques, l'alexandrin final <hl> permet une pause <hl>, « véritable illusion d'optique » qu'accentuent les nombreuses expressions archaïsantes telles que did swoon, did seem, did go, did receive, did make, qui doublent le prétérit en un temps composé et paraissent à la fois « très précautionneuses et très peu pressées ».")
Evaluation
Score Type Dataset
BERTScore 79.9 default lmqg/qg_frquad
Bleu_1 27.6 default lmqg/qg_frquad
Bleu_2 16.31 default lmqg/qg_frquad
Bleu_3 11 default lmqg/qg_frquad
Bleu_4 7.75 default lmqg/qg_frquad
METEOR 17.62 default lmqg/qg_frquad
MoverScore 56.44 default lmqg/qg_frquad
ROUGE_L 28.06 default lmqg/qg_frquad
Score Type Dataset
QAAlignedF1Score (BERTScore) 79.7 default lmqg/qg_frquad
QAAlignedF1Score (MoverScore) 54.22 default lmqg/qg_frquad
QAAlignedPrecision (BERTScore) 77.29 default lmqg/qg_frquad
QAAlignedPrecision (MoverScore) 52.84 default lmqg/qg_frquad
QAAlignedRecall (BERTScore) 82.36 default lmqg/qg_frquad
QAAlignedRecall (MoverScore) 55.76 default lmqg/qg_frquad
Score Type Dataset
AnswerExactMatch 46.96 default lmqg/qg_frquad
AnswerF1Score 67.44 default lmqg/qg_frquad
BERTScore 87.84 default lmqg/qg_frquad
Bleu_1 40.67 default lmqg/qg_frquad
Bleu_2 35.92 default lmqg/qg_frquad
Bleu_3 32.1 default lmqg/qg_frquad
Bleu_4 28.71 default lmqg/qg_frquad
METEOR 37.9 default lmqg/qg_frquad
MoverScore 76.45 default lmqg/qg_frquad
ROUGE_L 43.93 default lmqg/qg_frquad
Training hyperparameters

The following hyperparameters were used during fine-tuning:

  • dataset_path: lmqg/qg_frquad
  • dataset_name: default
  • input_types: ['paragraph_answer', 'paragraph_sentence']
  • output_types: ['question', 'answer']
  • prefix_types: ['qg', 'ae']
  • model: google/mt5-small
  • max_length: 512
  • max_length_output: 32
  • epoch: 18
  • batch: 64
  • lr: 0.0005
  • fp16: False
  • random_seed: 1
  • gradient_accumulation_steps: 1
  • label_smoothing: 0.15

The full configuration can be found at fine-tuning config file .

Citation
@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",
}

Runs of lmqg mt5-small-frquad-qg-ae on huggingface.co

45
Total runs
0
24-hour runs
8
3-day runs
21
7-day runs
22
30-day runs

More Information About mt5-small-frquad-qg-ae huggingface.co Model

More mt5-small-frquad-qg-ae license Visit here:

https://choosealicense.com/licenses/cc-by-4.0

mt5-small-frquad-qg-ae huggingface.co

mt5-small-frquad-qg-ae huggingface.co is an AI model on huggingface.co that provides mt5-small-frquad-qg-ae's model effect (), which can be used instantly with this lmqg mt5-small-frquad-qg-ae model. huggingface.co supports a free trial of the mt5-small-frquad-qg-ae model, and also provides paid use of the mt5-small-frquad-qg-ae. Support call mt5-small-frquad-qg-ae model through api, including Node.js, Python, http.

mt5-small-frquad-qg-ae huggingface.co Url

https://huggingface.co/lmqg/mt5-small-frquad-qg-ae

lmqg mt5-small-frquad-qg-ae online free

mt5-small-frquad-qg-ae huggingface.co is an online trial and call api platform, which integrates mt5-small-frquad-qg-ae's modeling effects, including api services, and provides a free online trial of mt5-small-frquad-qg-ae, you can try mt5-small-frquad-qg-ae online for free by clicking the link below.

lmqg mt5-small-frquad-qg-ae online free url in huggingface.co:

https://huggingface.co/lmqg/mt5-small-frquad-qg-ae

mt5-small-frquad-qg-ae install

mt5-small-frquad-qg-ae is an open source model from GitHub that offers a free installation service, and any user can find mt5-small-frquad-qg-ae on GitHub to install. At the same time, huggingface.co provides the effect of mt5-small-frquad-qg-ae install, users can directly use mt5-small-frquad-qg-ae installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mt5-small-frquad-qg-ae install url in huggingface.co:

https://huggingface.co/lmqg/mt5-small-frquad-qg-ae

Url of mt5-small-frquad-qg-ae

mt5-small-frquad-qg-ae huggingface.co Url

Provider of mt5-small-frquad-qg-ae huggingface.co

lmqg
ORGANIZATIONS

Other API from lmqg

huggingface.co

Total runs: 208
Run Growth: 202
Growth Rate: 97.12%
Updated:December 06 2022
huggingface.co

Total runs: 180
Run Growth: -22
Growth Rate: -12.22%
Updated:January 10 2023