Views
No views yet
lmqg/bart-base-squadshifts-new_wiki-qglmqg.lmqg1from lmqg import TransformersQG
2
3# initialize model
4model = TransformersQG(language="en", model="lmqg/bart-base-squadshifts-new_wiki-qg")
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", "lmqg/bart-base-squadshifts-new_wiki-qg")
4output = pipe("<hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.")
5| Score | Type | Dataset | |
|---|---|---|---|
| BERTScore | 93.12 | new_wiki | lmqg/qg_squadshifts |
| Bleu_1 | 30.38 | new_wiki | lmqg/qg_squadshifts |
| Bleu_2 | 20.98 | new_wiki | lmqg/qg_squadshifts |
| Bleu_3 | 15.24 | new_wiki | lmqg/qg_squadshifts |
| Bleu_4 | 11.5 | new_wiki | lmqg/qg_squadshifts |
| METEOR | 26.6 | new_wiki | lmqg/qg_squadshifts |
| MoverScore | 65.86 | new_wiki | lmqg/qg_squadshifts |
| ROUGE_L | 29 | new_wiki | lmqg/qg_squadshifts |
@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",
}