org.allenai.nlpstack.parse.poly.eval
Given a sentence token and two parses of that sentence, find the earliest point of divergence between the two parse paths for that token.
Given a sentence token and two parses of that sentence, find the earliest point of divergence between the two parse paths for that token. For example, if the paths for token 5 are (0,3,6,4,5) and (0,3,2,1,5) in the two parses, then the tuple (6, 2) would be returned (i.e. the candidate token and the gold token at which the paths diverged).
If the paths are equivalent, then None is returned.
the token of interest
a candidate parse for the sentence
a gold parse of the sentence
ignore arc labels when determining path equivalence
only consider the breadcrumb, not the entire path
the point of path divergence (see above), if it exists