factorie/factorie — pull request #60 by davidBelanger (2013-10-01 16:14:21+00:00)
Title: Improved ability for ParseBasedMentionFinding to add NerMentions

refactored ner mention stuff so that parse-based-mention finder can grab these using the ner mention finding code. Now ParseBasedMentionFinding is a class that has a useNer flag. The object ParseBasedMentionFinding has useNer = false.

If you want to get mentions from both parsing and ner, use ParseAndNerBasedMentionFinding. Previously, it was possible to get NER mentions when using the parse-based-mention finder, but it was sketchy, since NER wasn't a prereq of the annotator, and NER could have been added to the document after parse based mention finding was called. Now it properly handles it as a prereq.

Note for future work: parse based mention finding still has a bunch of stuff hard coded in during tackbp to handle appositives. These should be removed in order to make the mentions returned by it more closely resemble the ontonotes annotation guidelines.