edu.stanford.nlp.dcoref
Class RuleBasedCorefMentionFinder
java.lang.Object
edu.stanford.nlp.dcoref.RuleBasedCorefMentionFinder
- All Implemented Interfaces:
- CorefMentionFinder
public class RuleBasedCorefMentionFinder
- extends java.lang.Object
- implements CorefMentionFinder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parserProcessor
protected Annotator parserProcessor
RuleBasedCorefMentionFinder
public RuleBasedCorefMentionFinder()
filterPredictedMentions
public java.util.List<java.util.List<Mention>> filterPredictedMentions(java.util.List<java.util.List<Mention>> allGoldMentions,
Annotation doc,
Dictionaries dict)
- When mention boundaries are given
extractPredictedMentions
public java.util.List<java.util.List<Mention>> extractPredictedMentions(Annotation doc,
int _maxID,
Dictionaries dict)
- Main method of mention detection.
Extract all NP, PRP or NE, and filter out by manually written patterns
- Specified by:
extractPredictedMentions in interface CorefMentionFinder
findSyntacticHead
protected Tree findSyntacticHead(Mention m,
Tree root,
java.util.List<CoreLabel> tokens)
Stanford NLP Group