Smatch Score Interpretation and Web Interface Tutorial Version 0.1 April 28, 2012
Assume we have two AMRs:(a0 / watch (b0 / watch
An AMR can be viewed as conjunction of logical propositions (triples). A triple can be represented by relation(variable, value). Value can be a constant value or a variable.
Smatch score computes the maximum match number of triples among all possible variable mappings, and gets the F-score, precision, and recall. A detailed description can be found here.
In this case, smatch calculator chooses the variable mapping below:
a0(watch)-b0(watch) a1(boy)-b1(girl) a2(tv)-b2(boy)
which leads to matched triples and unmatched triples.AMR 1 triples:
instance (a0, watch) ^ instance (a1, boy) ^ instance (a2, tv) ^ ARG0 (a0, a1) ^ ARG1 (a0, a2)AMR 2 triples:
instance(b0, watch) ^ instance (b1, girl) ^ instance (b2, boy) ^ ARG0 (b0, b1) ^ ARG1 (b0, b2)
Smatch score: F-score: 0.60 (Precision: 0.60 (3/5) Recall: 0.60 (3/5))
Note 1: Blank line cannot exist between lines of an AMR, e.g. between the line "(w / watch) and ":ARG0 (b /boy)".
Note 2: Variables may be renamed in the output message to avoid duplicates.
(g / girl
:mod (s / sad))
(w / watch
:ARG0 (b / boy))