*disclaimer
118250
[python]
spaCy
インストール
- Windows のコンソールで
pip install spacy
- Windowsのシェルで管理者として実行(右ボタン)
python -m spacy download en
- Macの場合
pip3 install spacy python3 -m spacy download en_core_web_sm
- Pythonのシェルで
import spacy
- それか、スクリプトの先頭に書いておく
import spacy nlp = spacy.load('en_core_web_sm') 以下スクリプト
Anaconda NavigatorのEnvironmentsで追加できないときは、
https://github.com/conda/conda/issues/9423
- PowerShellで、
conda install -c conda-forge spacy conda install -c conda-forge spacy-model-en_core_web_sm
https://anaconda.org/conda-forge/spacy
Demo
References
https://githubja.com/explosion/spacy
https://ishitonton.hatenablog.com/entry/2018/11/24/004748
https://spacy.io/usage/spacy-101
http://sugiura-ken.org/wiki/