#!/usr/bin/env sh
# This script downloads the Stanford CoreNLP models.

CORENLP=stanford-corenlp-full-2015-12-09
SPICELIB=./spice/lib

echo "Downloading..."

wget http://nlp.stanford.edu/software/$CORENLP.zip

echo "Unzipping..."

unzip $CORENLP.zip -d $SPICELIB/
mv $SPICELIB/$CORENLP/stanford-corenlp-3.6.0.jar $SPICELIB/
mv $SPICELIB/$CORENLP/stanford-corenlp-3.6.0-models.jar $SPICELIB/
rm -f stanford-corenlp-full-2015-12-09.zip
rm -rf $SPICELIB/$CORENLP/

echo "Done."