|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsemeval.coreference.CoreferenceChain
public class CoreferenceChain
Represents a coreference chain in the semeval-SalsaXML corpora.
Constructor Summary | |
---|---|
CoreferenceChain(Corpus corpus)
Default constructor that takes the Corpus as an argument. |
Method Summary | |
---|---|
boolean |
addCoreferenceAnnotation(SingleCoreferenceAnnotation newAnnotation)
Returns true if the annotation matches one of the single
coreferences that are already contained in singleCoreferences. |
void |
addCoreferenceAnnotationWithoutChecking(SingleCoreferenceAnnotation newAnnotation)
Adds 'newAnnotation' to this CoreferenceChain without checking if it really suits to this chain. |
boolean |
annotationsMatch(SingleCoreferenceAnnotation firstAnnotation,
SingleCoreferenceAnnotation secondAnnotation)
Two references of the 'Coreference' frame match if at least one lemma covered by the 'Coreferent' FE of firstAnnotation overlaps with a lemma covered by the 'Current' FE of secondAnnotation, or the other way round. |
java.util.ArrayList<SingleCoreferenceAnnotation> |
getSingleCoreferences()
Returns the list of SingleCoreferenceAnnotation elements. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CoreferenceChain(Corpus corpus)
Corpus
as an argument.
corpus
- Method Detail |
---|
public boolean addCoreferenceAnnotation(SingleCoreferenceAnnotation newAnnotation)
true
if the annotation matches one of the single
coreferences that are already contained in singleCoreferences. Returns
also true if no annotation has been set yet.
newAnnotation
-
public void addCoreferenceAnnotationWithoutChecking(SingleCoreferenceAnnotation newAnnotation)
CoreferenceChain
will still be a
connected chain.
newAnnotation
- public boolean annotationsMatch(SingleCoreferenceAnnotation firstAnnotation, SingleCoreferenceAnnotation secondAnnotation)
firstAnnotation
- secondAnnotation
-
public java.util.ArrayList<SingleCoreferenceAnnotation> getSingleCoreferences()
SingleCoreferenceAnnotation
elements.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |