from lmqg import TransformersQG
# initialize model
model = TransformersQG(language="en", model="lmqg/bart-base-squad-qag")
# model prediction
question_answer_pairs = model.generate_qa("William Turner was an English painter who specialised in watercolour landscapes")
With
transformers
from transformers import pipeline
pipe = pipeline("text2text-generation", "lmqg/bart-base-squad-qag")
output = pipe("Beyonce 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 bart-base-squad-qag on huggingface.co
24
Total runs
-1
24-hour runs
-2
3-day runs
-2
7-day runs
12
30-day runs
More Information About bart-base-squad-qag huggingface.co Model
bart-base-squad-qag huggingface.co is an AI model on huggingface.co that provides bart-base-squad-qag's model effect (), which can be used instantly with this lmqg bart-base-squad-qag model. huggingface.co supports a free trial of the bart-base-squad-qag model, and also provides paid use of the bart-base-squad-qag. Support call bart-base-squad-qag model through api, including Node.js, Python, http.
bart-base-squad-qag huggingface.co is an online trial and call api platform, which integrates bart-base-squad-qag's modeling effects, including api services, and provides a free online trial of bart-base-squad-qag, you can try bart-base-squad-qag online for free by clicking the link below.
lmqg bart-base-squad-qag online free url in huggingface.co:
bart-base-squad-qag is an open source model from GitHub that offers a free installation service, and any user can find bart-base-squad-qag on GitHub to install. At the same time, huggingface.co provides the effect of bart-base-squad-qag install, users can directly use bart-base-squad-qag installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bart-base-squad-qag install url in huggingface.co: