echo "Installing CoreNLP"
pip3 install --user --upgrade pexpect unidecode xmltodict jsonrpclib-pelix
pip3 install --user --upgrade git+https://bitbucket.org/ProgVal/corenlp-python.git
if [ ! -f stanford-corenlp-full-2014-08-27.zip ]
then
    echo "Downloading CoreNLP (long: 221MB)…"
    wget http://nlp.stanford.edu/software/stanford-corenlp-full-2014-08-27.zip
fi
echo "Extracting CoreNLP…"
rm -rf stanford-corenlp-full-2014-08-27
unzip stanford-corenlp-full-2014-08-27.zip

if [ ! -f stanford-postagger-full-2014-10-26.zip ]
then
    echo "Downloading POS Tagger (long: 123MB)…"
    wget http://nlp.stanford.edu/software/stanford-postagger-full-2014-10-26.zip
fi
echo "Installing POS Tagger"
unzip stanford-postagger-full-2014-10-26.zip
python3 -c "import nltk; nltk.download('wordnet'); nltk.download('omw')"

echo "Installing CoreNLP"
pip3 install --user --upgrade pexpect unidecode xmltodict jsonrpclib-pelix
pip3 install --user --upgrade git+https://bitbucket.org/ProgVal/corenlp-python.git
if [ ! -f stanford-corenlp-full-2015-01-29.zip ]
then
    echo "Downloading CoreNLP (long: 221MB)…"
    wget http://nlp.stanford.edu/software/stanford-corenlp-full-2015-01-29.zip
fi
echo "Extracting CoreNLP…"
rm -rf stanford-corenlp-full-2015-01-29
unzip stanford-corenlp-full-2015-01-29.zip

if [ ! -f stanford-postagger-full-2014-10-26.zip ]
then
    echo "Downloading POS Tagger (long: 123MB)…"
    wget http://nlp.stanford.edu/software/stanford-postagger-full-2014-10-26.zip
fi
echo "Installing POS Tagger"
unzip stanford-postagger-full-2014-10-26.zip
python3 -c "import nltk; nltk.download('wordnet'); nltk.download('omw')"

Revert "Revert to the previous version of the StanfordParser."
Revert "Revert to the previous version of the StanfordParser."

This reverts commit 9a15d77b3bd9e6d9552b0e6496219d5893751146.
