-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_final.sh
More file actions
executable file
·22 lines (12 loc) · 1005 Bytes
/
test_final.sh
File metadata and controls
executable file
·22 lines (12 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
MALLET_DIST=/opt/local/share/java/mallet-2.0.7/dist
export MALLET_CLASSPATH=$MALLET_DIST/mallet.jar:$MALLET_DIST/mallet-deps.jar
export CLASSPATH=out/production/SEMST2012:src
TRAINING_DATA=data/starsem-st-2012-data/cd-sco/corpus/training/SEM-2012-SharedTask-CD-SCO-training-09032012.txt
./cue_finder.groovy "$TRAINING_DATA" $1 data/sys0.dev.conll.txt
./convert_conll_to_mallet.groovy data/sys0.dev.conll.txt false
java -d32 -Xmx800m -cp "$MALLET_CLASSPATH" cc.mallet.fst.SimpleTagger --model-file data/scope.model data/scope.sys0.dev.conll.txt >data/sys1.dev.scope.txt
./convert_scope_to_conll.groovy data/sys0.dev.conll.txt data/sys1.dev.scope.txt data/sys1.dev.conll.txt
./convert_conll_to_mallet.groovy data/sys1.dev.conll.txt false
java -d32 -Xmx800m -cp "$MALLET_CLASSPATH" cc.mallet.fst.SimpleTagger --model-file data/event.model data/event.sys1.dev.conll.txt >data/sys2.dev.event.txt
./convert_event_to_conll.groovy data/sys1.dev.conll.txt data/sys2.dev.event.txt $2 false