英文

T5用于问题生成

这是训练用于端到端问题生成任务的 t5-small 模型。只需输入文本,模型将生成多个问题。

您可以使用推理API来玩弄模型,只需输入文本即可查看结果!

有关更多详细信息,请参阅 this repo。

模型在行动中 ?

您需要克隆 repo

from pipelines import pipeline

text = "Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum \
and first released in 1991, Python's design philosophy emphasizes code \
readability with its notable use of significant whitespace."

nlp = pipeline("e2e-qg")
nlp(text)
=> [
 'Who created Python?',
 'When was Python first released?',
 "What is Python's design philosophy?"
]