模型:
valhalla/t5-small-e2e-qg
这是训练用于端到端问题生成任务的 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?" ]