coli-saar / am-parser

Modular implementation of an AM dependency parser in AllenNLP.
Apache License 2.0
30 stars 10 forks source link

spacy model requires download #86

Open jgroschwitz opened 4 years ago

jgroschwitz commented 4 years ago

Running am-parser for the first time in Linux Subsystem for Windows (in a conda environment), I got the error:

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

The following command solved it:

python3 -m spacy download en_core_web_md

Could this happen automatically? Or does it usually happen automatically, just not on my system?

weissenh commented 3 years ago

I would guess (haven't checked though) that this model is not automatically downloaded when you install spacy. At least, the first example directly on https://spacy.io/ (pip install spacy followed by python -m spacy download en_core_web_sm) and the quickstart section ( https://spacy.io/usage ) seem to suggest that you have to download models separately. If the small (sm) model is not downloaded as part of the spacy installation, why should the medium (md) model be?

Two other approaches are presented here :