Class ParseCoreference
- java.lang.Object
-
- edu.kit.ipd.are.archdoclink.nlp.parse.ParseCoreference
-
- All Implemented Interfaces:
Annotatable,Coreference,TextElement
public class ParseCoreference extends Object implements Coreference
-
-
Constructor Summary
Constructors Constructor Description ParseCoreference(Word word, Word referencedWord)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidannotate(Document document, Annotation annotation)Annotates the given annotation to the given documentbooleanequals(Object obj)WordgetReferencedWord()StringgetText()WordgetWord()inthashCode()
-
-
-
Method Detail
-
getText
public String getText()
- Specified by:
getTextin interfaceTextElement- Returns:
- the text of the element
-
getReferencedWord
public Word getReferencedWord()
- Specified by:
getReferencedWordin interfaceCoreference
-
getWord
public Word getWord()
- Specified by:
getWordin interfaceCoreference
-
annotate
public void annotate(Document document, Annotation annotation)
Description copied from interface:AnnotatableAnnotates the given annotation to the given document- Specified by:
annotatein interfaceAnnotatable- Parameters:
document- Document where the annotation should be added toannotation- Annotation that should be added
-
-