public abstract class DeterministicCorefSieve extends Object
Modifier and Type | Field and Description |
---|---|
SieveOptions |
flags |
Constructor and Description |
---|
DeterministicCorefSieve()
Initialize flagSet
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkEntityMatch(Document document,
CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict,
Set<Mention> roleSet) |
boolean |
coreferent(Document document,
CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention2,
Mention ant,
Dictionaries dict,
Set<Mention> roleSet,
Semantics semantics)
Checks if two clusters are coreferent according to our sieve pass constraints
|
String |
flagsToString() |
List<Mention> |
getOrderedAntecedents(int antecedentSentence,
int mySentence,
List<Mention> orderedMentions,
List<List<Mention>> orderedMentionsBySentence,
Mention m1,
int m1Position,
Map<Integer,CorefCluster> corefClusters,
Dictionaries dict)
Orders the antecedents for the given mention (m1)
|
void |
init(Properties props) |
boolean |
skipThisMention(Document document,
Mention m1,
CorefCluster c,
Dictionaries dict)
Skip this mention? (search pruning)
|
boolean |
useRoleSkip() |
public final SieveOptions flags
public void init(Properties props)
public String flagsToString()
public boolean useRoleSkip()
public boolean skipThisMention(Document document, Mention m1, CorefCluster c, Dictionaries dict)
public boolean checkEntityMatch(Document document, CorefCluster mentionCluster, CorefCluster potentialAntecedent, Dictionaries dict, Set<Mention> roleSet)
public boolean coreferent(Document document, CorefCluster mentionCluster, CorefCluster potentialAntecedent, Mention mention2, Mention ant, Dictionaries dict, Set<Mention> roleSet, Semantics semantics) throws Exception
document
- Exception
public List<Mention> getOrderedAntecedents(int antecedentSentence, int mySentence, List<Mention> orderedMentions, List<List<Mention>> orderedMentionsBySentence, Mention m1, int m1Position, Map<Integer,CorefCluster> corefClusters, Dictionaries dict)
antecedentSentence
- mySentence
- orderedMentions
- orderedMentionsBySentence
- m1
- m1Position
- corefClusters
- dict
-