Skip to content

Semantic parsing

Semantic Parsing

We support two essential data structures for Abstract Meaning Representation (AMR) parsing, which can be imported from metametric.structures.amr:

  • Prop: A proposition, expressing some relation (pred) between a subject (subj) and an object (obj)
  • AMR: A (rooted, directed, acyclic) AMR graph, represented as a collection of Props.

We support the standard Smatch score (s_match; paper), a generic metric for semantic parsing, though most commonly used for AMR parsing. s_match can be imported from metametrics.metrics.semantic_parsing.