forked from ppke-nlpg/gut-besser-chunker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evaluate.sh
executable file
·27 lines (26 loc) · 1.31 KB
/
evaluate.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
#!/bin/bash
# -*- coding: utf-8, vim: expandtab:ts=4 -*-
rm ties2.log
for targetRep in "IOB1" "IOB2" "IOE1" "IOE2" "IOBES" # "OC"
do
for lex in "none" "just-words" "full"
do
for tagger in "tnt" "nltk-tnt" "huntag3-bigram" "huntag3-trigram" "huntag3-crfsuite" "crfSuite" "2.purepos" # "1.purepos" "3.purepos"
do
for conv in "balazs" "corenlp" # "ss05"
do
params=""
for origRep in "IOB1" "IOB2" "IOE1" "IOE2" "IOBES" # "OC"
do
echo "converted/test.txt.balazs.IOB2.${origRep}.${lex}.lex.${tagger}.tagged.delex.${conv}.${origRep}.${targetRep}"
converters/conv_iob_balazs/run.sh ${targetRep} ${targetRep} "converted/test.txt.balazs.IOB2.${origRep}.${lex}.lex.${tagger}.tagged.delex.${conv}.${origRep}.${targetRep}" - | grep -c "Invalid$"
params="$params converted/test.txt.balazs.IOB2.${origRep}.${lex}.lex.${tagger}.tagged.delex.${conv}.${origRep}.${targetRep}"
done
echo "$params"
echo
./voteN.py $params 2>>ties2.log | tee "converted/test.txt.balazs.IOB2.${origRep}.${lex}.lex.${tagger}.tagged.delex.${conv}.${origRep}.${targetRep}.voted" | ./conlleval.pl
echo
done
done
done
done