mirror of https://github.com/explosion/spaCy.git
33 lines
753 B
Bash
Executable File
33 lines
753 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${VIA}" == "pypi" ]; then
|
|
rm -rf *
|
|
pip install spacy
|
|
python -m spacy.en.download
|
|
python -m spacy.de.download
|
|
fi
|
|
|
|
if [[ "${VIA}" == "sdist" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
|
|
rm -rf *
|
|
pip uninstall spacy
|
|
wget https://api.explosion.ai/build/spacy/sdist/$TRAVIS_COMMIT
|
|
mv $TRAVIS_COMMIT sdist.tgz
|
|
pip install -U sdist.tgz
|
|
fi
|
|
|
|
|
|
if [ "${VIA}" == "compile" ]; then
|
|
pip install -r requirements.txt
|
|
pip install -e .
|
|
fi
|
|
|
|
# mkdir -p corpora/en
|
|
# cd corpora/en
|
|
# wget --no-check-certificate http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz
|
|
# tar -xzf WordNet-3.0.tar.gz
|
|
# mv WordNet-3.0 wordnet
|
|
# cd ../../
|
|
# mkdir models/
|
|
# python bin/init_model.py en lang_data/ corpora/ models/en
|
|
#fi
|