/** * prune existing 'constit' annotations on 'span' of 'doc' using information from a part-of-speech * tagger. Words are assumed, on entry, to have multiple 'constit' annotations from dictionary * look-up, reflecting the POS ambiguity of the words; this ambiguity will be reduced using a * tagger. Words are first assigned 'tagger' annotations with feature cat = a Penn tag. This * information is then used to remove 'constit' annotations not consistent with the Penn tag. */ public void prune(Document doc, Span span) { annotate(doc, span, "tagger"); Retagger.pruneConstit(doc, span); }