Views
No views yet
lmqg/mt5-small-koquad-qaglmqg.lmqg1from lmqg import TransformersQG
2
3# initialize model
4model = TransformersQG(language="ko", model="lmqg/mt5-small-koquad-qag")
5
6# model prediction
7question_answer_pairs = model.generate_qa("1990년 영화 《 남부군 》에서 단역으로 영화배우 첫 데뷔에 이어 같은 해 KBS 드라마 《지구인》에서 단역으로 출연하였고 이듬해 MBC 《여명의 눈동자》를 통해 단역으로 출연하였다.")
8transformers1from transformers import pipeline
2
3pipe = pipeline("text2text-generation", "lmqg/mt5-small-koquad-qag")
4output = pipe("1990년 영화 《 남부군 》에서 단역으로 영화배우 첫 데뷔에 이어 같은 해 KBS 드라마 《지구인》에서 단역으로 출연하였고 이듬해 MBC 《여명의 눈동자》를 통해 단역으로 출연하였다.")
5| Score | Type | Dataset | |
|---|---|---|---|
| QAAlignedF1Score (BERTScore) | 74.23 | default | lmqg/qag_koquad |
| QAAlignedF1Score (MoverScore) | 75.06 | default | lmqg/qag_koquad |
| QAAlignedPrecision (BERTScore) | 74.29 | default | lmqg/qag_koquad |
| QAAlignedPrecision (MoverScore) | 75.14 | default | lmqg/qag_koquad |
| QAAlignedRecall (BERTScore) | 74.2 | default | lmqg/qag_koquad |
| QAAlignedRecall (MoverScore) | 75.04 | default | lmqg/qag_koquad |
@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",
}