DeepKE icon indicating copy to clipboard operation
DeepKE copied to clipboard

cnschema未找到'models--hfl--chinese-bert-wwm\\refs\\main'

Open sessionFebruary opened this issue 3 years ago • 1 comments

Describe the question

A clear and concise description of what the question is. 您好,我按照readme_cnschema中的联合三元组抽取步骤,运行predict.py,报出了如下错误FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\LoveLy/.cache\huggingface\hub\models--hfl--chinese-bert-wwm\refs\main',我的前面设置ner和re的fp应该都没问题

Environment (please complete the following information):

  • OS: window
  • Python Version 3.8

Screenshots

If applicable, add screenshots to help explain your problem.

image image

Additional context

Add any other context about the problem here.

sessionFebruary avatar Oct 25 '23 13:10 sessionFebruary

你好能给出具体报错行数嘛,根据报错大概率是没有从huggingface下载hfl/chinese-bert-wwm模型,可以提前下载后,将https://github.com/zjunlp/DeepKE/blob/main/example/triple/cnschema/conf/model/lm.yaml#L6C10-L6C31 修改为模型路径

tlk1997 avatar Oct 30 '23 07:10 tlk1997