gpt4 book ai didi

Python nlp spacy OSError : [E050] Can't find model 'de'

转载 作者:行者123 更新时间:2023-12-01 07:49:17 26 4
gpt4 key购买 nike

我用 pip 安装了 spacy 并想加载 spacy。以下带有 spacy 的 Python 代码:

import spacy
nlp = spacy.load('de',disable=['parser', 'tagger','ner'])

nlp.max_length = 1198623

不幸的是,代码抛出以下错误:

OSError: [E050] Can't find model 'de'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

最佳答案

我必须按如下方式安装 spacy:

python -m spacy download de

关于Python nlp spacy OSError : [E050] Can't find model 'de' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56307733/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com