mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-30 20:06:30 +03:00
27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
//- 💫 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
|
|
+qs({config: 'venv', python: 3}) venv .env
|
|
+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({config: 'gpu', os: 'mac'}) export PATH=$PATH:/usr/local/cuda-8.0/bin
|
|
+qs({config: 'gpu', os: 'linux'}) export PATH=$PATH:/usr/local/cuda-8.0/bin
|
|
|
|
+qs({package: 'pip'}) pip install -U spacy
|
|
+qs({package: 'conda'}) conda install -c conda-forge spacy
|
|
|
|
+qs({package: 'source'}) git clone https://github.com/explosion/spaCy
|
|
+qs({package: 'source'}) cd spaCy
|
|
+qs({package: 'source'}) pip install -r requirements.txt
|
|
+qs({package: 'source'}) pip install -e .
|
|
|
|
for _, model in MODELS
|
|
+qs({model: model}) spacy download #{model}
|