2016-10-13 13:39:41 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-10-15 02:10:33 +03:00
|
|
|
if [ "${VIA}" == "pypi" ]; then
|
2016-10-13 13:39:41 +03:00
|
|
|
rm -rf *
|
2017-09-04 20:49:35 +03:00
|
|
|
pip install spacy-nightly
|
2017-09-04 19:14:15 +03:00
|
|
|
python -m spacy download en
|
2016-10-13 13:39:41 +03:00
|
|
|
fi
|
|
|
|
|
2016-12-18 20:02:44 +03:00
|
|
|
if [[ "${VIA}" == "sdist" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
|
2016-10-15 02:10:33 +03:00
|
|
|
rm -rf *
|
2016-10-15 17:24:11 +03:00
|
|
|
pip uninstall spacy
|
2016-10-15 02:23:25 +03:00
|
|
|
wget https://api.explosion.ai/build/spacy/sdist/$TRAVIS_COMMIT
|
2016-10-15 02:36:32 +03:00
|
|
|
mv $TRAVIS_COMMIT sdist.tgz
|
2016-10-15 17:24:11 +03:00
|
|
|
pip install -U sdist.tgz
|
2016-10-15 02:10:33 +03:00
|
|
|
fi
|
|
|
|
|
2016-10-13 13:39:41 +03:00
|
|
|
|
2016-12-18 20:07:59 +03:00
|
|
|
if [ "${VIA}" == "compile" ]; then
|
|
|
|
pip install -r requirements.txt
|
2017-09-16 12:49:31 +03:00
|
|
|
python setup.py build_ext --inplace
|
2016-12-18 20:07:59 +03:00
|
|
|
pip install -e .
|
|
|
|
fi
|
|
|
|
|
2016-12-18 19:52:56 +03:00
|
|
|
# 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
|