You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frompprintimportpprintfrompaddlenlpimportTaskflowschema=schema= ['Time', 'Player', 'Competition', 'Score']# Define the schema for entity extractionie=Taskflow('information_extraction', schema=schema, model="uie-m-base", schema_lang="en")
pprint(ie("2月8日上午北京冬奥会自由式滑雪女子大跳台决赛中中国选手谷爱凌以188.25分获得金牌!")) # B
报错提示:
Traceback (most recent call last):
File "/home/yqliu/liuyu_qing/work/study/paddle/PaddleNLP-3.0.0-beta2/legacy/model_zoo/uie/a.py", line 4, i
ie = Taskflow('information_extraction', schema=schema, model="uie-m-base", schema_lang="en")
File "/home/yqliu/anaconda3/envs/uie/lib/python3.9/site-packages/paddlenlp/taskflow/taskflow.py", line 809
self.task_instance = task_class(
File "/home/yqliu/anaconda3/envs/uie/lib/python3.9/site-packages/paddlenlp/taskflow/information_extraction
self._get_inference_model()
File "/home/yqliu/anaconda3/envs/uie/lib/python3.9/site-packages/paddlenlp/taskflow/task.py", line 372, in
self._prepare_static_mode()
File "/home/yqliu/anaconda3/envs/uie/lib/python3.9/site-packages/paddlenlp/taskflow/task.py", line 227, in
self.predictor = paddle.inference.create_predictor(self._config)
RuntimeError: (NotFound) Cannot open file /home/yqliu/.paddlenlp/taskflow/information_extraction/uie-m-base/hether the file is normal.
请提出你的问题
CPU版本运行官方示例:
报错提示:
使用uie-base、uie-base-en模型无问题,混合模型uie-m-base报错,基于uie-m-base微调了一个新模型,微调模型可以执行评估代码eval.py,但是使用taskflow也报相同的错误。
环境信息:
The text was updated successfully, but these errors were encountered: