Class Sieve
- java.lang.Object
-
- edu.upf.taln.dri.module.coref.sieve.Sieve
-
- Direct Known Subclasses:
AppositionSieve
,ExactMatchSieve
,PredicateNominativeSieve
,PronounSieve
,RelativePronounSieve
,RelaxedMatchSieve
public abstract class Sieve extends Object
Generic co-reference sieve.
-
-
Constructor Summary
Constructors Constructor Description Sieve(SieveTypeEnum st, int maxSentDistance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applySieve(CorefChainBuilder corefBuilder)
Apply a co-reference sieve to all the candidate mentions of a text that are not skipped by the CorefChainBuilder.skipMention method.SieveTypeEnum
getSt()
-
-
-
Constructor Detail
-
Sieve
public Sieve(SieveTypeEnum st, int maxSentDistance)
-
-
Method Detail
-
getSt
public SieveTypeEnum getSt()
-
applySieve
public void applySieve(CorefChainBuilder corefBuilder)
Apply a co-reference sieve to all the candidate mentions of a text that are not skipped by the CorefChainBuilder.skipMention method. The default visiting order of candidate co-reference mentions is from the first to the last sentence and in each sentence from the last to the first candidate co-reference mention. ORDER OF ANTECEDENT CHECK IN A SENTENCE: For each candidate co-reference mention the candidate co-reference antecedents are checked starting from the same sentence backwards up to the beginning of the text. The order of candidate co-reference antecedents in eachs entence is defined by the implementation of the method: getOrderedAntecedentList. CHECK IF THE CANDIDATE COREFERENCE MATCH AN ANTECEDENT: The implementation of the method checkCorefMatch checks if the candidate co-reference mention and a candidate co-reference antecedent match. For each candidate co-reference mention we match the first antecedent among those visited, then we consider the next candidate co-reference mention and search for its antecedents. The coreference chains of the corefBuilder are properly modified.- Parameters:
corefBuilder
-
-
-