Views
No views yet
StellarMilk/t5-small-squad-qag-recreatedlmqg.lmqg1from lmqg import TransformersQG
2
3# initialize model
4model = TransformersQG(language="en", model="StellarMilk/t5-small-squad-qag-recreated")
5
6# model prediction
7question_answer_pairs = model.generate_qa("William Turner was an English painter who specialised in watercolour landscapes")
8transformers1from transformers import pipeline
2
3pipe = pipeline("text2text-generation", "StellarMilk/t5-small-squad-qag-recreated")
4output = pipe("generate question and answer: Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.")
5| Score | Type | Dataset |
|---|
@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",
}