🚀 research-backup/bart-large-squad-qg-no-paragraph
模型卡片
本模型是 facebook/bart-large 的微調版本,用於在 lmqg/qg_squad(數據集名稱:default)上進行問題生成任務,微調藉助了 lmqg
工具。該模型在微調時不使用段落信息,僅使用包含答案的句子。
🚀 快速開始
模型基本信息
許可證
本模型使用 CC BY 4.0 許可證。
評估指標
- BLEU4
- METEOR
- ROUGE-L
- BERTScore
- MoverScore
數據集
模型標籤
示例展示
- 輸入文本:" Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records."
示例標題:"問題生成示例 1"
- 輸入文本:"Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records."
示例標題:"問題生成示例 2"
- 輸入文本:"Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records ."
示例標題:"問題生成示例 3"
💻 使用示例
基礎用法
使用 lmqg
庫
from lmqg import TransformersQG
model = TransformersQG(language="en", model="research-backup/bart-large-squad-qg-no-paragraph")
questions = model.generate_q(list_context="William Turner was an English painter who specialised in watercolour landscapes", list_answer="William Turner")
使用 transformers
庫
from transformers import pipeline
pipe = pipeline("text2text-generation", "research-backup/bart-large-squad-qg-no-paragraph")
output = pipe("<hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.")
📚 詳細文檔
評估
訓練超參數
以下超參數在微調過程中使用:
- 數據集路徑:lmqg/qg_squad
- 數據集名稱:default
- 輸入類型:['sentence_answer']
- 輸出類型:['question']
- 前綴類型:None
- 模型:facebook/bart-large
- 最大長度:128
- 最大輸出長度:32
- 訓練輪數:8
- 批次大小:32
- 學習率:5e-05
- 是否使用混合精度:False
- 隨機種子:1
- 梯度累積步數:16
- 標籤平滑係數:0.15
完整配置可在 微調配置文件 中查看。
引用
@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",
}