模型:
lmqg/flan-t5-base-squad-qg
该模型是 google/flan-t5-base 的fine-tuned版本,用于 lmqg 数据集上的问题生成任务 (数据集名称:default)。
from lmqg import TransformersQG # initialize model model = TransformersQG(language="en", model="lmqg/flan-t5-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")
from transformers import pipeline
pipe = pipeline("text2text-generation", "lmqg/flan-t5-base-squad-qg")
output = pipe("generate question: <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.53 | default | 12313321 |
| Bleu_1 | 58.79 | default | 12313321 |
| Bleu_2 | 42.68 | default | 12313321 |
| Bleu_3 | 32.99 | default | 12313321 |
| Bleu_4 | 26.1 | default | 12313321 |
| METEOR | 26.99 | default | 12313321 |
| MoverScore | 64.67 | default | 12313321 |
| ROUGE_L | 53.2 | default | 12313321 |
| Score | Type | Dataset | |
|---|---|---|---|
| QAAlignedF1Score (BERTScore) | 92.69 | default | 12313321 |
| QAAlignedF1Score (MoverScore) | 64.38 | default | 12313321 |
| QAAlignedPrecision (BERTScore) | 92.51 | default | 12313321 |
| QAAlignedPrecision (MoverScore) | 64.49 | default | 12313321 |
| QAAlignedRecall (BERTScore) | 92.88 | default | 12313321 |
| QAAlignedRecall (MoverScore) | 64.37 | default | 12313321 |
以下是fine-tuning期间使用的超参数:
完整的配置信息可以在 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",
}