Replies: 3 comments 1 reply
-
@qiwsir 您好,麻烦发一下paddlenlp的版本信息,谢谢! |
Beta Was this translation helpful? Give feedback.
1 reply
-
@qiwsir Hi,home_path用于指定PPNLP_HOME的位置,默认是~/.paddlenlp 如果设置为./default_model的话模型会保存在./default_model/taskflow/wordtag目录下面 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
按照下面的方法执行 Taskflow
from paddlenlp import Taskflow ner = Taskflow("ner", home_path="./default_model")
执行结果是:
100%|██████████| 10/10 [00:00<00:00, 922.21it/s]
100%|██████████| 77978/77978 [00:49<00:00, 1566.25it/s]
100%|██████████| 5/5 [00:00<00:00, 4001.43it/s]
[2022-11-28 10:17:43,570] [ INFO] - Downloading https://bj.bcebos.com/paddlenlp/models/transformers/ernie_ctm/vocab.txt and saved to /home/aistudio/.paddlenlp/models/wordtag
[2022-11-28 10:17:43,573] [ INFO] - Downloading vocab.txt from https://bj.bcebos.com/paddlenlp/models/transformers/ernie_ctm/vocab.txt
100%|██████████| 90/90 [00:00<00:00, 1274.80it/s]
[2022-11-28 10:17:43,764] [ INFO] - Downloading https://paddlenlp.bj.bcebos.com/models/transformers/ernie_ctm/wordtag_pos.pdparams and saved to /home/aistudio/.paddlenlp/models/wordtag
[2022-11-28 10:17:43,767] [ INFO] - Downloading wordtag_pos.pdparams from https://paddlenlp.bj.bcebos.com/models/transformers/ernie_ctm/wordtag_pos.pdparams
100%|██████████| 561792/561792 [03:19<00:00, 2810.50it/s]
这里显示,任务并没有按照指定目录要求,保存到指定目录。
请问是什么原因?
Beta Was this translation helpful? Give feedback.
All reactions