Views
No views yet
research-backup/t5-small-squad-qg-no-answerlmqg.
This model is fine-tuned without answer information, i.e. generate a question only given a paragraph (note that normal model is fine-tuned to generate a question given a pargraph and an associated answer in the paragraph).lmqg1from lmqg import TransformersQG
2
3# initialize model
4model = TransformersQG(language="en", model="research-backup/t5-small-squad-qg-no-answer")
5
6# model prediction
7questions = model.generate_q(list_context="William Turner was an English painter who specialised in watercolour landscapes", list_answer="William Turner")
8transformers1from transformers import pipeline
2
3pipe = pipeline("text2text-generation", "research-backup/t5-small-squad-qg-no-answer")
4output = pipe("generate question: <hl> Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records. <hl>")
5| Score | Type | Dataset | |
|---|---|---|---|
| BERTScore | 89.64 | default | lmqg/qg_squad |
| Bleu_1 | 53.37 | default | lmqg/qg_squad |
| Bleu_2 | 36.67 | default | lmqg/qg_squad |
| Bleu_3 | 27.4 | default | lmqg/qg_squad |
| Bleu_4 | 21.12 | default | lmqg/qg_squad |
| METEOR | 23.38 | default | lmqg/qg_squad |
| MoverScore | 62.07 | default | lmqg/qg_squad |
| ROUGE_L | 47.47 | default | lmqg/qg_squad |
@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",
}