forked from dbpedia-spotlight/model-quickstarter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare.sh
executable file
·32 lines (25 loc) · 1.08 KB
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
wget --no-check-certificate -q https://raw.github.com/dbpedia-spotlight/dbpedia-spotlight/master/bin/index_db.sh
chmod +x index_db.sh
mkdir wdir
mkdir models
mvn_version=`mvn -version | grep "Apache Maven" | sed -r "s/Apache Maven (\S+).*/\1/"`
if [[ "$mvn_version" > "3.0.0" ]]; then
echo "Maven 3 ok."
else
echo "One of our dependencies requires Maven 3. Please check your maven version with 'mvn -version'"
exit -1
fi
#The current version does not use any OpenNLP models!
#echo "Downloading OpenNLP models..."
#for l in en de nl pt da sv; do
# cd $l
# wget -q http://opennlp.sourceforge.net/models-1.5/$l-token.bin
# wget -q http://opennlp.sourceforge.net/models-1.5/$l-sent.bin
# wget -q http://opennlp.sourceforge.net/models-1.5/$l-pos-maxent.bin
# wget -q http://opennlp.sourceforge.net/models-1.5/$l-chunker.bin
# wget -q http://opennlp.sourceforge.net/models-1.5/$l-ner-person.bin
# wget -q http://opennlp.sourceforge.net/models-1.5/$l-ner-location.bin
# wget -q http://opennlp.sourceforge.net/models-1.5/$l-ner-organization.bin
# cd ..
#done