spaCy/travis.sh
2016-10-15 01:10:33 +02:00

27 lines
584 B
Bash
Executable File

#!/bin/bash
if [ "${VIA}" == "pypi" ]; then
rm -rf *
pip install spacy
fi
if [ "${VIA}" == "sdist" ]; then
rm -rf *
wget https://api.explosion.ai/build/spaCy/$TRAVIS_COMMIT spacy.tgz
pip install spacy.tgz
fi
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