spaCy/travis.sh

28 lines
610 B
Bash
Raw Normal View History

#!/bin/bash
2016-10-14 23:10:33 +00:00
if [ "${VIA}" == "pypi" ]; then
rm -rf *
pip install spacy
fi
2016-10-14 23:10:33 +00:00
if [ "${VIA}" == "sdist" ]; then
rm -rf *
2016-10-14 23:23:25 +00:00
wget https://api.explosion.ai/build/spacy/sdist/$TRAVIS_COMMIT
2016-10-14 23:36:32 +00:00
mv $TRAVIS_COMMIT sdist.tgz
pip install sdist.tgz
2016-10-14 23:10:33 +00:00
fi
2016-10-13 18:48:22 +00:00
if [ "${VIA}" == "compile" ]; then
pip install -r requirements.txt
pip install -e .
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