|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.dcoref.sievepasses.DeterministicCorefSieve
public abstract class DeterministicCorefSieve
Base class for a Coref Sieve. Each sieve extends this class, and set flags for its own options in the constructor.
| Field Summary | |
|---|---|
SieveOptions |
flags
|
| Constructor Summary | |
|---|---|
DeterministicCorefSieve()
Initialize flagSet |
|
| Method Summary | |
|---|---|
boolean |
checkEntityMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant,
Dictionaries dict,
java.util.Set<Mention> roleSet)
|
boolean |
coreferent(Document document,
CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention2,
Mention ant,
Dictionaries dict,
java.util.Set<Mention> roleSet,
Semantics semantics)
Checks if two clusters are coreferent according to our sieve pass constraints |
java.lang.String |
flagsToString()
|
java.util.List<Mention> |
getOrderedAntecedents(int antecedentSentence,
int mySentence,
java.util.List<Mention> orderedMentions,
java.util.List<java.util.List<Mention>> orderedMentionsBySentence,
Mention m1,
int m1Position,
java.util.Map<java.lang.Integer,CorefCluster> corefClusters,
Dictionaries dict)
Orders the antecedents for the given mention (m1) |
void |
init(java.util.Properties props)
|
boolean |
skipThisMention(Document document,
Mention m1,
CorefCluster c,
Dictionaries dict)
Skip this mention? (search pruning) |
boolean |
useRoleSkip()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final SieveOptions flags
| Constructor Detail |
|---|
public DeterministicCorefSieve()
| Method Detail |
|---|
public void init(java.util.Properties props)
public java.lang.String flagsToString()
public boolean useRoleSkip()
public boolean skipThisMention(Document document,
Mention m1,
CorefCluster c,
Dictionaries dict)
public boolean checkEntityMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant,
Dictionaries dict,
java.util.Set<Mention> roleSet)
public boolean coreferent(Document document,
CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention2,
Mention ant,
Dictionaries dict,
java.util.Set<Mention> roleSet,
Semantics semantics)
throws java.lang.Exception
document -
java.lang.Exception
public java.util.List<Mention> getOrderedAntecedents(int antecedentSentence,
int mySentence,
java.util.List<Mention> orderedMentions,
java.util.List<java.util.List<Mention>> orderedMentionsBySentence,
Mention m1,
int m1Position,
java.util.Map<java.lang.Integer,CorefCluster> corefClusters,
Dictionaries dict)
antecedentSentence - mySentence - orderedMentions - orderedMentionsBySentence - m1 - m1Position - corefClusters - dict -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||