Package edu.stanford.nlp.coref.md
Class DependencyCorefMentionFinder
- java.lang.Object
-
- edu.stanford.nlp.coref.md.CorefMentionFinder
-
- edu.stanford.nlp.coref.md.DependencyCorefMentionFinder
-
public class DependencyCorefMentionFinder extends CorefMentionFinder
-
-
Field Summary
Fields Modifier and Type Field Description MentionDetectionClassifiermdClassifier-
Fields inherited from class edu.stanford.nlp.coref.md.CorefMentionFinder
allowReparsing, enumerationsMentionPattern, headFinder, lang, npOrPrpMentionPattern, parserProcessor
-
-
Constructor Summary
Constructors Constructor Description DependencyCorefMentionFinder(Properties props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidassignMentionIDs(List<List<Mention>> predictedMentions, int maxID)voidfindHead(CoreMap s, List<Mention> mentions)static voidfindHeadInDependency(CoreMap s, Mention m)static voidfindHeadInDependency(CoreMap s, List<Mention> mentions)List<List<Mention>>findMentions(Annotation doc, Dictionaries dict, Properties props)Main method of mention detection.protected static voidsetBarePlural(List<Mention> mentions)-
Methods inherited from class edu.stanford.nlp.coref.md.CorefMentionFinder
addGoldMentions, addNamedEntityStrings, extractEnumerations, extractNamedEntityModifiers, extractPremarkedEntityMentions, findHeadChinese, findSyntacticHead, insideNE, inStopList, isPleonastic, isPleonasticDebug, partitiveRule, removeSpuriousMentions, removeSpuriousMentionsEn, removeSpuriousMentionsZh
-
-
-
-
Field Detail
-
mdClassifier
public MentionDetectionClassifier mdClassifier
-
-
Constructor Detail
-
DependencyCorefMentionFinder
public DependencyCorefMentionFinder(Properties props) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundExceptionIOException
-
-
Method Detail
-
findMentions
public List<List<Mention>> findMentions(Annotation doc, Dictionaries dict, Properties props)
Main method of mention detection. Extract all NP, PRP or NE, and filter out by manually written patterns.- Specified by:
findMentionsin classCorefMentionFinder- Parameters:
doc- The syntactically annotated documentdict- Dictionaries for coref.- Returns:
- For each of the List of sentences in the document, a List of Mention objects
-
assignMentionIDs
protected static void assignMentionIDs(List<List<Mention>> predictedMentions, int maxID)
-
findHead
public void findHead(CoreMap s, List<Mention> mentions)
- Overrides:
findHeadin classCorefMentionFinder
-
-