-
Notifications
You must be signed in to change notification settings - Fork 14
/
metamaplite.sh.in
executable file
·32 lines (23 loc) · 1.18 KB
/
metamaplite.sh.in
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
31
#!/bin/sh
#
# A simplified metamaplite bash script using metamaplite standalone
# jar, should work on MINGW bash (and GIT bash) on Windows.
#
PROJECTDIR=@@basedir@@
MML_VERSION=3.6.2rc8
OPENNLP_MODELS=$PROJECTDIR/data/models
CONFIGDIR=$PROJECTDIR/config
MML_JVM_OPTS=-Xmx12g
# metamaplite properties
MMLPROPS="-Dopennlp.en-sent.bin.path=$OPENNLP_MODELS/en-sent.bin \
-Dopennlp.en-token.bin.path=$OPENNLP_MODELS/en-token.bin \
-Dopennlp.en-pos.bin.path=$OPENNLP_MODELS/en-pos-perceptron.bin \
-Dopennlp.en-chunker.bin.path=$OPENNLP_MODELS/en-chunker.bin \
-Dlog4j.configurationFile=$PROJECTDIR/config/log4j2.xml \
-Dmetamaplite.entitylookup.resultlength=1500 \
-Dmetamaplite.index.directory=$PROJECTDIR/data/ivf/@@year@@/@@subset@@ \
-Dmetamaplite.excluded.termsfile=$PROJECTDIR/data/specialterms.txt"
MML_CLASSPATH=$PROJECTDIR/target/classes:$PROJECTDIR/build/classes:$PROJECTDIR/classes:$PROJECTDIR:$MML_JAR
MML_JAR=$PROJECTDIR/target/metamaplite-${MML_VERSION}-standalone.jar
MML_CLASSPATH=$PROJECTDIR/target/classes:$PROJECTDIR/build/classes:$PROJECTDIR/classes:$PROJECTDIR:$MML_JAR
java $MML_JVM_OPTS $MMLPROPS -cp $MML_CLASSPATH gov.nih.nlm.nls.ner.MetaMapLite $*