2016-10-13 10:39:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-10-13 12:32:02 +00:00
|
|
|
if [ "${TRAVIS_PULL_REQUEST}" == "false" && "${VIA}" == "pypi"]; then
|
2016-10-13 10:39:41 +00:00
|
|
|
rm -rf *
|
|
|
|
pip install spacy
|
|
|
|
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
|