org.allenai.nlpstack.parse.poly.eval
a bank containing gold parses
set to true if you do not want to count paths from punctuation tokens
set to true if you do not want to consider arclabels when determining the equivalence of two paths
set to true if you only want to consider the breadcrumb when determining the equivalence of two paths
A friendly name for this scoring function.
A friendly name for this scoring function.
Get the number of correct paths and the number of total paths in a candidate parse.
Get the number of correct paths and the number of total paths in a candidate parse.
the candidate parse to evaluate
the pair (num correct paths, num total paths)
The PathAccuracyScore computes the percentage of a candidate parse's tokens that have a completely correct breadcrumb path (i.e. if you follow a token's breadcrumbs to the nexus in both the candidate and the gold parse, you encounter the same set of tokens in the same order).