public abstract class QMSieve extends Sieve
Sieve.MentionData
Modifier and Type | Field and Description |
---|---|
protected static java.util.Set<java.lang.String> |
beforeQuotePunctuation
A logger for this class
|
protected static java.util.Set<java.lang.String> |
commonSpeechWords |
protected java.lang.String |
sieveName |
protected static SemgrexPattern |
subjVerbPattern |
animacySet, ANIMATE_NOUN, characterMap, doc, NAME, PRONOUN, pronounCorefMap, rootNameNode
Constructor and Description |
---|
QMSieve(Annotation doc,
java.util.Map<java.lang.String,java.util.List<Person>> characterMap,
java.util.Map<java.lang.Integer,java.lang.String> pronounCorefMap,
java.util.Set<java.lang.String> animacySet,
java.lang.String sieveName) |
Modifier and Type | Method and Description |
---|---|
abstract void |
doQuoteToMention(Annotation doc) |
protected static void |
fillInMention(CoreMap quote,
Sieve.MentionData md,
java.lang.String sieveName) |
static void |
fillInMention(CoreMap quote,
java.lang.String text,
int begin,
int end,
java.lang.String sieveName,
java.lang.String mentionType) |
protected Sieve.MentionData |
getMentionData(CoreMap quote) |
createNameMatcher, doCoreference, findClosestMentionInSpanBackward, findClosestMentionInSpanForward, findClosestMentionsInSpanBackward, findClosestMentionsInSpanForward, getNamesInParagraph, getQuoteParagraph, oneSpeakerSentence, rangeContainsCharIndex, resolveAmbiguities, scanForAnimates, scanForNames, scanForNamesNew, scanForPronouns, scanForPronouns, tokenRangeToString, tokenRangeToString, tokenToLocation
protected static java.util.Set<java.lang.String> beforeQuotePunctuation
protected static final SemgrexPattern subjVerbPattern
protected static java.util.Set<java.lang.String> commonSpeechWords
protected java.lang.String sieveName
public QMSieve(Annotation doc, java.util.Map<java.lang.String,java.util.List<Person>> characterMap, java.util.Map<java.lang.Integer,java.lang.String> pronounCorefMap, java.util.Set<java.lang.String> animacySet, java.lang.String sieveName)
public abstract void doQuoteToMention(Annotation doc)
public static void fillInMention(CoreMap quote, java.lang.String text, int begin, int end, java.lang.String sieveName, java.lang.String mentionType)
protected static void fillInMention(CoreMap quote, Sieve.MentionData md, java.lang.String sieveName)
protected Sieve.MentionData getMentionData(CoreMap quote)