- Output formats
- Alignment Format
- Nodes and Edges Format
- Data
- Hand Alignments
- Training
- Config File
- Step by Step Training
- Evaluation
- Alignment Evaluation
- Parser Performance
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