Views
No views yet
lmqg/t5-large-tweetqa-qalmqg.lmqg1from lmqg import TransformersQG
2
3# initialize model
4model = TransformersQG(language="en", model="lmqg/t5-large-tweetqa-qa")
5
6# model prediction
7answers = model.answer_q(list_question="What is a person called is practicing heresy?", list_context=" Heresy is any provocative belief or theory that is strongly at variance with established beliefs or customs. A heretic is a proponent of such claims or beliefs. Heresy is distinct from both apostasy, which is the explicit renunciation of one's religion, principles or cause, and blasphemy, which is an impious utterance or action concerning God or sacred things.")
8transformers1from transformers import pipeline
2
3pipe = pipeline("text2text-generation", "lmqg/t5-large-tweetqa-qa")
4output = pipe("question: What is a person called is practicing heresy?, context: Heresy is any provocative belief or theory that is strongly at variance with established beliefs or customs. A heretic is a proponent of such claims or beliefs. Heresy is distinct from both apostasy, which is the explicit renunciation of one's religion, principles or cause, and blasphemy, which is an impious utterance or action concerning God or sacred things.")
5| Score | Type | Dataset | |
|---|---|---|---|
| AnswerExactMatch | 54.45 | default | lmqg/qg_tweetqa |
| AnswerF1Score | 71.1 | default | lmqg/qg_tweetqa |
| BERTScore | 94.8 | default | lmqg/qg_tweetqa |
| Bleu_1 | 58.53 | default | lmqg/qg_tweetqa |
| Bleu_2 | 49.65 | default | lmqg/qg_tweetqa |
| Bleu_3 | 41.43 | default | lmqg/qg_tweetqa |
| Bleu_4 | 35.02 | default | lmqg/qg_tweetqa |
| METEOR | 36.5 | default | lmqg/qg_tweetqa |
| MoverScore | 80.79 | default | lmqg/qg_tweetqa |
| ROUGE_L | 64.13 | default | lmqg/qg_tweetqa |
@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",
}