public class DependencyCorefMentionFinder extends CorefMentionFinder
Modifier and Type | Field and Description |
---|---|
MentionDetectionClassifier |
mdClassifier |
allowReparsing, enumerationsMentionPattern, headFinder, lang, npOrPrpMentionPattern, parserProcessor
Constructor and Description |
---|
DependencyCorefMentionFinder(java.util.Properties props) |
Modifier and Type | Method and Description |
---|---|
protected static void |
assignMentionIDs(java.util.List<java.util.List<Mention>> predictedMentions,
int maxID) |
void |
findHead(CoreMap s,
java.util.List<Mention> mentions) |
static void |
findHeadInDependency(CoreMap s,
java.util.List<Mention> mentions) |
static void |
findHeadInDependency(CoreMap s,
Mention m) |
java.util.List<java.util.List<Mention>> |
findMentions(Annotation doc,
Dictionaries dict,
java.util.Properties props)
Main method of mention detection.
|
protected static void |
setBarePlural(java.util.List<Mention> mentions) |
addGoldMentions, addNamedEntityStrings, extractEnumerations, extractNamedEntityModifiers, extractPremarkedEntityMentions, findHeadChinese, findSyntacticHead, insideNE, inStopList, isPleonastic, isPleonasticDebug, partitiveRule, removeSpuriousMentions, removeSpuriousMentionsEn, removeSpuriousMentionsZh
public MentionDetectionClassifier mdClassifier
public DependencyCorefMentionFinder(java.util.Properties props) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public java.util.List<java.util.List<Mention>> findMentions(Annotation doc, Dictionaries dict, java.util.Properties props)
findMentions
in class CorefMentionFinder
doc
- The syntactically annotated documentdict
- Dictionaries for coref.protected static void assignMentionIDs(java.util.List<java.util.List<Mention>> predictedMentions, int maxID)
protected static void setBarePlural(java.util.List<Mention> mentions)
public static void findHeadInDependency(CoreMap s, java.util.List<Mention> mentions)
public void findHead(CoreMap s, java.util.List<Mention> mentions)
findHead
in class CorefMentionFinder