M.Sc. Project in Language Technology at Uni Hamburg from Florian Schneider
Please note that an internet connection is crucial mandatory! Also be aware that this application (specially for testing) needs a lot of heap space (~3-4 GB) due to the models used in the UIMA Pipeline.
sudo apt update && sudo apt upgrade -y
sudo apt install -y oracle-java8-installer oracle-java8-set-default maven npm nginx redis-server docker docker-compose
git clone https://github.com/floschne/NLP_ThumbnailAnnotator.git && cd NLP_ThumbnailAnnotator
When using WordNet with DKPro WSD, a hard coded, non-relative path to the WordNet files has to be set in a properties file. Since the absolute location of those WordNet files is not known at runtime, the temporary solution is to copy the files to /tmp/.
cp -r thumbnailAnnotator.parent/thumbnailAnnotator.core/src/main/resources/WordNet-3.0 /tmp/
cd thumbnailAnnotator.parent
mvn clean package spring-boot:repackage
cd ..
docker-compose up --build
sudo service redis-server start
cd thumbnailAnnotator.parent
mvn clean package spring-boot:repackage
java -jar -Dspring.profiles.active=local thumbnailAnnotator.api/target/thumbnailAnnotator.api-0.1.BETA.jar &
cd ..
cd app
npm run build
sudo cp -r dist index.html /var/www/html/
sudo service nginx restart
cd ..