2022.03.14为止,Spacy官方提供的可供安装的Models有8个:en_core_sci_sm、en_core_sci_md、en_core_sci_scibert、en_core_sci_lg、en_ner_craft_md、en_ner_jnlpba_md、en_ner_bc5cdr_md、en_ner_bionlp13cg_md
Model | Description | Install URL |
---|
en_core_sci_sm | A full spaCy pipeline for biomedical data. | Download | en_core_sci_md | A full spaCy pipeline for biomedical data with a larger vocabulary and 50k word vectors. | Download | en_core_sci_scibert | A full spaCy pipeline for biomedical data with a ~785k vocabulary and allenai/scibert-base as the transformer model. | Download | en_core_sci_lg | A full spaCy pipeline for biomedical data with a larger vocabulary and 600k word vectors. | Download | en_ner_craft_md | A spaCy NER model trained on the CRAFT corpus. | Download | en_ner_jnlpba_md | A spaCy NER model trained on the JNLPBA corpus. | Download | en_ner_bc5cdr_md | A spaCy NER model trained on the BC5CDR corpus. | Download | en_ner_bionlp13cg_md | A spaCy NER model trained on the BIONLP13CG corpus. | Download |
表格来源于:SpaCy models for biomedical text processing
Anaconda某环境下安装Spacy的Models模型
找到Anaconda的 Anaconda Prompt 并 右击 ,以管理员身份运行 (安装Spacy就在正常情况下安装就好了:pip install scispacy,方法很多,可以网上查查;我个人是基本上在Anaconda Navigater的操作界面手操的,很少使用命令!)
- 在base环境下:activate environment(你个人打算按在那个环境,就写那个环境名)
(base) C:\Users\Chain>activate github_39
- 安装Spacy的Models模型:pip install ModelName(个人想要安装的模型名)
(github_39) C:\Users\Chain>pip install en_ner_bionlp13cg_md
- 验证:不报错就是安装成功了
import en_ner_bionlp13cg_md
import spacy
nlp = spacy.load("en_ner_bionlp13cg_md")
本地安装可餐:Windows下安装使用Spacy英文库en_core_web_md,解决Warning: no model found for ‘en_core_web_md’ 验证方式可餐:spaCy:No module named ‘en’ || Can‘t find model ‘en’
|