-
Notifications
You must be signed in to change notification settings - Fork 15
/
test-structures.sh
21 lines (20 loc) · 1.21 KB
/
test-structures.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cd grammars
gf -make StructuresEng.gf
echo "gr -probs=Structures.probs -number=10000 -cat=Top -depth=12 | wf -file=\"../out/1-structures-test.gft\"" | gf -run Structures.pgf
sort -u ../out/1-structures-test.gft >../out/2-structures-test.gft
echo "created out/2-structures-test.gft"
cd ..
cat out/2-structures-test.gft | gfud -gf2ud grammars/Structures Eng Top ud >out/1-structures-test.conllu
echo "created out/1-structures-test.conllu"
gfud cosine-similarity-sort ud/UD_English-EWT/en_ewt-ud-train.conllu out/1-structures-test.conllu -threshold 64 SUBTREETYPE >out/2-structures-test.conllu
echo "created out/2-structures-test.conllu"
##cat out/2-structures-test.conllu | gfud conll2pdf
cat out/2-structures-test.conllu | gfud statistics DEPREL
echo "POS not covered:"
gfud not-covered ud/UD_English-EWT/en_ewt-ud-test.conllu out/2-structures-test.conllu POS
echo "DEPREL not covered:"
gfud not-covered ud/UD_English-EWT/en_ewt-ud-test.conllu out/2-structures-test.conllu DEPREL
echo "DEPREL similarity:"
gfud cosine-similarity ud/UD_English-EWT/en_ewt-ud-test.conllu out/2-structures-test.conllu DEPREL
echo "SUBTREETYPE similarity:"
gfud cosine-similarity ud/UD_English-EWT/en_ewt-ud-test.conllu out/2-structures-test.conllu SUBTREETYPE