-
Notifications
You must be signed in to change notification settings - Fork 3k
[Question]: 使用Taskflow模块,进行信息抽取输出是空 #6311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
me too |
我的也是,我在aistudio 上也测试了,也为[{}] 。有说是版本的问题,我这paddlenlp2.5.2 panddlepaddle2.5.1 都是最新版本。不知道哪里有问题。官方给个答复呗 |
为什么close这个issue????? 试了好几个版本,都是输出为空 |
以下是我的环境,您可以参考一下:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请提出你的问题
from pprint import pprint
from paddlenlp import Taskflow
schema = ['时间', '选手', '赛事名称'] # Define the schema for entity extraction
ie = Taskflow('information_extraction', schema=schema)
pprint(ie("2月8日上午北京冬奥会自由式滑雪女子大跳台决赛中中国选手谷爱凌以188.25分获得金牌!"))
输出:
[{}]
The text was updated successfully, but these errors were encountered: