public abstract class Sieve
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Sieve.ClassifierType |
Modifier and Type | Field and Description |
---|---|
java.util.Set<Dictionaries.MentionType> |
aType
type of mention we want to compare to.
|
java.util.Set<java.lang.String> |
aTypeStr |
Sieve.ClassifierType |
classifierType |
protected java.util.Locale |
lang |
int |
maxSentDist
the maximum sentence distance for linking two mentions
|
java.util.Set<Dictionaries.MentionType> |
mType
type of mention we want to resolve.
|
java.util.Set<java.lang.String> |
mTypeStr |
java.util.Properties |
props |
java.lang.String |
sievename |
Constructor and Description |
---|
Sieve() |
Sieve(java.util.Properties props) |
Sieve(java.util.Properties props,
java.lang.String sievename) |
Modifier and Type | Method and Description |
---|---|
abstract void |
findCoreferentAntecedent(Mention m,
int mIdx,
Document document,
Dictionaries dict,
java.util.Properties props,
java.lang.StringBuilder sbLog) |
static java.util.List<Mention> |
getOrderedAntecedents(Mention m,
int antecedentSentence,
int mPosition,
java.util.List<java.util.List<Mention>> orderedMentionsBySentence,
Dictionaries dict) |
static boolean |
hasThat(java.util.List<CoreLabel> words) |
static boolean |
hasToVerb(java.util.List<CoreLabel> words) |
static boolean |
isReallyCoref(Document document,
int mID,
int antID) |
static Sieve |
loadSieve(java.util.Properties props,
java.lang.String sievename) |
static java.util.List<Sieve> |
loadSieves(java.util.Properties props) |
protected static boolean |
matchedMentionType(Mention m,
java.util.Set<java.lang.String> types) |
protected static boolean |
matchedMentionType(Mention m,
java.lang.String type) |
static void |
merge(Document document,
int mID,
int antID) |
java.lang.String |
resolveMention(Document document,
Dictionaries dict,
java.util.Properties props) |
protected static boolean |
skipForAnalysis(Mention ant,
Mention m,
java.util.Properties props) |
public Sieve.ClassifierType classifierType
protected java.util.Locale lang
public final java.lang.String sievename
public int maxSentDist
public final java.util.Set<Dictionaries.MentionType> mType
public final java.util.Set<Dictionaries.MentionType> aType
public final java.util.Set<java.lang.String> mTypeStr
public final java.util.Set<java.lang.String> aTypeStr
public java.util.Properties props
public Sieve()
public Sieve(java.util.Properties props)
public Sieve(java.util.Properties props, java.lang.String sievename)
public java.lang.String resolveMention(Document document, Dictionaries dict, java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public abstract void findCoreferentAntecedent(Mention m, int mIdx, Document document, Dictionaries dict, java.util.Properties props, java.lang.StringBuilder sbLog) throws java.lang.Exception
java.lang.Exception
public static Sieve loadSieve(java.util.Properties props, java.lang.String sievename) throws java.lang.Exception
java.lang.Exception
public static java.util.List<Sieve> loadSieves(java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public static boolean hasThat(java.util.List<CoreLabel> words)
public static boolean hasToVerb(java.util.List<CoreLabel> words)
public static void merge(Document document, int mID, int antID)
public static boolean isReallyCoref(Document document, int mID, int antID)
protected static boolean skipForAnalysis(Mention ant, Mention m, java.util.Properties props)
protected static boolean matchedMentionType(Mention m, java.util.Set<java.lang.String> types)
protected static boolean matchedMentionType(Mention m, java.lang.String type)
public static java.util.List<Mention> getOrderedAntecedents(Mention m, int antecedentSentence, int mPosition, java.util.List<java.util.List<Mention>> orderedMentionsBySentence, Dictionaries dict)