-
Notifications
You must be signed in to change notification settings - Fork 4
/
easy_eval_py3.sh
executable file
·26 lines (23 loc) · 996 Bytes
/
easy_eval_py3.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
#!/usr/bin/env bash
#input A (if parser vs gold: parser)
A=$1
#input B (if parser vs gold: gold)
B=$2
cd py3-Smatch-and-S2match
echo "calculating smatch and sub-task metrics based on smatch alignment"
echo "------------------------------------------"
./evaluation-fixed-smatch.sh ../$A ../$B
echo "------------------------------------------"
echo "------------------------------------------"
echo "calculating s2match and subtask metrics based on s2match alignment; params: vectors = glove 100d, sim = cosim, threshold = 0.5"
echo "------------------------------------------"
./evaluation-fixed-s2match.sh ../$A ../$B
echo "------------------------------------------"
echo "------------------------------------------"
cd ..
echo "graph structure error"
echo "------------------------------------------"
python graph-structure-error/graph_structure_error.py -f $A $B
echo "------------------------------------------"
echo "EVALUATION COMPLETE"
echo "------------------------------------------"