Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.21 KB

Alignment_Evaluation.md

File metadata and controls

47 lines (37 loc) · 1.21 KB

Docs - Table of Contents


Alignment Evaluation

Alignments can be evaluated using EvalSpans. EvalSpans expects the gold alignments to be marked with ::gold. For example:

# ::tok Saudi Arabia ( SA )
# ::alignments 0-2|0+0.0+0.0.0+0.0.1 ::gold
# ::alignments 0-2|0+0.0+0.0.0+0.0.1
(c / country
  :name (n / name
          :op1 "Saudi"
          :op2 "Arabia"))

To test the performance of the automatic aligner, first create the hand alignments file and then do:

. scripts/config.sh
scripts/ALIGN.sh < data/hand_alignments/LDC2013E117/hand_align.txt > align.txt
./run EvalSpans < align.txt

The output should be:

Number of AMR: 200
Precision = 0.9158829676071055
Recall = 0.8880445795339412
F1 = 0.9017489711934157