简体   繁体   English

无法访问 Spacy NER 结果

[英]Spacy NER results not accessible

I ran a SpaCy custom NER model and got 4 files are result:我运行了一个 SpaCy 自定义 NER 模型,结果得到了 4 个文件:

  1. ner
  2. vocab词汇
  3. meta
  4. tokenizer分词器

Earlier when I ran the results on my local system, to use model results I used:早些时候,当我在本地系统上运行结果时,为了使用我使用的模型结果:

nlp = spacy.load("folder location of the 4 files") nlp = spacy.load("4 个文件的文件夹位置")

Now I am hosting my codes on EC2 and giving an EC2 path here but I am getting the following error: Can't find model '/home/ec2-user/venv/trial/python/Banking_Entity_Files'.现在我在 EC2 上托管我的代码并在此处提供 EC2 路径,但出现以下错误:找不到模型“/home/ec2-user/venv/trial/python/Banking_Entity_Files”。 It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.它似乎不是快捷方式链接、Python 包或数据目录的有效路径。

Any suggestions有什么建议么

I ran a SpaCy custom NER model and got 4 files are result:我运行了一个 SpaCy 自定义 NER 模型,结果得到了 4 个文件:

  1. ner
  2. vocab词汇
  3. meta
  4. tokenizer分词器

Earlier when I ran the results on my local system, to use model results I used:早些时候,当我在本地系统上运行结果时,为了使用我使用的模型结果:

nlp = spacy.load("folder location of the 4 files") nlp = spacy.load("4 个文件的文件夹位置")

Now I am hosting my codes on EC2 and giving an EC2 path here but I am getting the following error: Can't find model '/home/ec2-user/venv/trial/python/Banking_Entity_Files'.现在我在 EC2 上托管我的代码并在此处提供 EC2 路径,但出现以下错误:找不到模型“/home/ec2-user/venv/trial/python/Banking_Entity_Files”。 It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.它似乎不是快捷方式链接、Python 包或数据目录的有效路径。

Any suggestions有什么建议么

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM