-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmkdata
executable file
·29 lines (21 loc) · 1.03 KB
/
mkdata
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
#!/bin/bash
# e.g., "./mkdata tempeval2 aux/tempeval2/ english"
JAR="time-release"
JAVANLP="etc/stanford-corenlp-2012-07-09.jar"
#JAVANLP="$JAVANLP_HOME/projects/core/classes:$JAVANLP_HOME/projects/more/classes:$JAVANLP_HOME/projects/research/classes:$JAVANLP_HOME/projects/core/lib/xom-1.2.7.jar:etc/models.jar"
CP="dist/$JAR.jar:etc/lib.jar:${SCALA_HOME}/lib/scala-library.jar:${SCALA_HOME}/lib/scala-compiler.jar:etc/jline.jar:etc/postgresql.jar:$JAVANLP:etc/jdom.jar:etc/joda-time.jar"
java -ea -Xrunhprof:cpu=samples -cp $CP -server -Xmx4000M -ea time.Data $@
#if [ "$1" == "tempeval2" ]; then
# java -cp $CP -server -Xmx2000M -ea time.TempEval2 $@
#elif [ "$1" == "timebank" ]; then
# cd aux/timebank && ./toPsql.rb . data && cd ../.. &&\
# java -cp $CP -server -Xmx2000M -ea time.NumberAnnotator timebank
#elif [ "$1" == "gutime" ]; then
# if [ "$2" == "" ]; then
# echo "Usage: `basename $0` gutime [annotate_directory]"
# exit 1
# fi
# java -cp $CP -server -Xmx1000M -ea time.TimeAnnotator $2
#else
# echo "Invalid dataset: $1"
#fi