2017-10-03 15:26:20 +03:00
|
|
|
//- 💫 DOCS > USAGE > INSTALL > QUICKSTART
|
|
|
|
|
|
|
|
- QUICKSTART[QUICKSTART.length - 1].options = Object.keys(MODELS).map(m => ({ id: m, title: LANGUAGES[m] }))
|
|
|
|
|
|
|
|
+quickstart(QUICKSTART, "Quickstart")
|
|
|
|
+qs({config: 'venv', python: 2}) python -m pip install -U virtualenv
|
|
|
|
+qs({config: 'venv', python: 3}) python -m pip install -U venv
|
|
|
|
+qs({config: 'venv', python: 2}) virtualenv .env
|
2018-07-18 11:31:24 +03:00
|
|
|
+qs({config: 'venv', python: 3}) python -m venv .env
|
2017-10-03 15:26:20 +03:00
|
|
|
+qs({config: 'venv', os: 'mac'}) source .env/bin/activate
|
|
|
|
+qs({config: 'venv', os: 'linux'}) source .env/bin/activate
|
|
|
|
+qs({config: 'venv', os: 'windows'}) .env\Scripts\activate
|
|
|
|
|
|
|
|
+qs({package: 'pip'}) pip install -U spacy
|
2017-11-11 15:07:00 +03:00
|
|
|
+qs({package: 'conda'}) conda install -c conda-forge spacy
|
2017-10-03 15:26:20 +03:00
|
|
|
|
|
|
|
+qs({package: 'source'}) git clone https://github.com/explosion/spaCy
|
|
|
|
+qs({package: 'source'}) cd spaCy
|
2018-05-24 13:42:16 +03:00
|
|
|
+qs({package: 'source', os: 'mac'}) export PYTHONPATH=`pwd`
|
|
|
|
+qs({package: 'source', os: 'linux'}) export PYTHONPATH=`pwd`
|
|
|
|
+qs({package: 'source', os: 'windows'}) set PYTHONPATH=/path/to/spaCy
|
2017-10-03 15:26:20 +03:00
|
|
|
+qs({package: 'source'}) pip install -r requirements.txt
|
2017-11-04 16:24:14 +03:00
|
|
|
+qs({package: 'source'}) python setup.py build_ext --inplace
|
2017-10-03 15:26:20 +03:00
|
|
|
|
|
|
|
for _, model in MODELS
|
2017-11-10 04:30:55 +03:00
|
|
|
+qs({model: model}) python -m spacy download #{model}
|