PaddleNLP icon indicating copy to clipboard operation
PaddleNLP copied to clipboard

在aistudio上运行样例的时候,提示information_extraction不在Taskflow list中

Open estuday opened this issue 1 year ago • 2 comments

`--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) /tmp/ipykernel_182/1763430471.py in 3 4 schema = ['时间', '选手', '赛事名称'] ----> 5 ie = Taskflow('information_extraction', schema=schema) 6 pprint(ie("2月8日上午北京冬奥会自由式滑雪女子大跳台决赛中中国选手谷爱凌以188.25分获得金牌!"))

/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlenlp/taskflow/taskflow.py in init(self, task, model, device_id, **kwargs) 182 def init(self, task, model=None, device_id=0, **kwargs): 183 assert task in TASKS, "The task name:{} is not in Taskflow list, please check your task name.".format( --> 184 task) 185 self.task = task 186 if model is not None:

AssertionError: The task name:information_extraction is not in Taskflow list, please check your task name.`

estuday avatar Aug 04 '22 10:08 estuday

paddlenlp的版本是2.2.6

estuday avatar Aug 04 '22 10:08 estuday

paddlenlp的版本是2.2.6

升级一下paddlenlp的版本到最新的2.3.5版本

wawltor avatar Aug 04 '22 11:08 wawltor

暂时关闭该issue,如有问题可以重新该issue。

wawltor avatar Aug 15 '22 06:08 wawltor