from lmqg import TransformersQG
# initialize model
model = TransformersQG(language="en", model="lmqg/t5-small-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")
With
transformers
from transformers import pipeline
pipe = pipeline("text2text-generation", "lmqg/t5-small-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.")
@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",
}
Runs of lmqg t5-small-squad-qg on huggingface.co
2.6K
Total runs
0
24-hour runs
0
3-day runs
92
7-day runs
140
30-day runs
More Information About t5-small-squad-qg huggingface.co Model
t5-small-squad-qg huggingface.co is an AI model on huggingface.co that provides t5-small-squad-qg's model effect (), which can be used instantly with this lmqg t5-small-squad-qg model. huggingface.co supports a free trial of the t5-small-squad-qg model, and also provides paid use of the t5-small-squad-qg. Support call t5-small-squad-qg model through api, including Node.js, Python, http.
t5-small-squad-qg huggingface.co is an online trial and call api platform, which integrates t5-small-squad-qg's modeling effects, including api services, and provides a free online trial of t5-small-squad-qg, you can try t5-small-squad-qg online for free by clicking the link below.
lmqg t5-small-squad-qg online free url in huggingface.co:
t5-small-squad-qg is an open source model from GitHub that offers a free installation service, and any user can find t5-small-squad-qg on GitHub to install. At the same time, huggingface.co provides the effect of t5-small-squad-qg install, users can directly use t5-small-squad-qg installed effect in huggingface.co for debugging and trial. It also supports api for free installation.