from lmqg import TransformersQG
# initialize model
model = TransformersQG(language="en", model="lmqg/bart-large-tweetqa-qa")
# model prediction
answers = model.answer_q(list_question="What is a person called is practicing heresy?", list_context=" Heresy is any provocative belief or theory that is strongly at variance with established beliefs or customs. A heretic is a proponent of such claims or beliefs. Heresy is distinct from both apostasy, which is the explicit renunciation of one's religion, principles or cause, and blasphemy, which is an impious utterance or action concerning God or sacred things.")
With
transformers
from transformers import pipeline
pipe = pipeline("text2text-generation", "lmqg/bart-large-tweetqa-qa")
output = pipe("question: What is a person called is practicing heresy?, context: Heresy is any provocative belief or theory that is strongly at variance with established beliefs or customs. A heretic is a proponent of such claims or beliefs. Heresy is distinct from both apostasy, which is the explicit renunciation of one's religion, principles or cause, and blasphemy, which is an impious utterance or action concerning God or sacred things.")
@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-large-tweetqa-qa on huggingface.co
21
Total runs
1
24-hour runs
1
3-day runs
0
7-day runs
11
30-day runs
More Information About bart-large-tweetqa-qa huggingface.co Model
bart-large-tweetqa-qa huggingface.co is an AI model on huggingface.co that provides bart-large-tweetqa-qa's model effect (), which can be used instantly with this lmqg bart-large-tweetqa-qa model. huggingface.co supports a free trial of the bart-large-tweetqa-qa model, and also provides paid use of the bart-large-tweetqa-qa. Support call bart-large-tweetqa-qa model through api, including Node.js, Python, http.
bart-large-tweetqa-qa huggingface.co is an online trial and call api platform, which integrates bart-large-tweetqa-qa's modeling effects, including api services, and provides a free online trial of bart-large-tweetqa-qa, you can try bart-large-tweetqa-qa online for free by clicking the link below.
lmqg bart-large-tweetqa-qa online free url in huggingface.co:
bart-large-tweetqa-qa is an open source model from GitHub that offers a free installation service, and any user can find bart-large-tweetqa-qa on GitHub to install. At the same time, huggingface.co provides the effect of bart-large-tweetqa-qa install, users can directly use bart-large-tweetqa-qa installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bart-large-tweetqa-qa install url in huggingface.co: