Class ParseWord
- java.lang.Object
-
- edu.kit.ipd.are.archdoclink.nlp.parse.ParseWord
-
- All Implemented Interfaces:
Annotatable,TextElement,Word
public class ParseWord extends Object implements Word
-
-
Constructor Summary
Constructors Constructor Description ParseWord(edu.kit.ipd.parse.luna.graph.INode node)
-
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)StringgetChunkIOB()StringgetChunkName()intgetInstructionNumber()StringgetLemma()StringgetPos()intgetSentenceNumber()intgetSuccessors()StringgetText()inthashCode()booleanisChunkStart()booleanisNamedEntity()booleanisPunctuation()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.kit.ipd.are.archdoclink.nlp.Word
isStopword
-
-
-
-
Method Detail
-
isPunctuation
public boolean isPunctuation()
- Specified by:
isPunctuationin interfaceWord- Returns:
- true if the "word" is actually a punctuation symbol
-
getText
public String getText()
- Specified by:
getTextin interfaceTextElement- Returns:
- the text of the element
-
getChunkIOB
public String getChunkIOB()
- Returns:
- the chunkIOB
-
getChunkName
public String getChunkName()
- Returns:
- the chunk name
-
getSuccessors
public int getSuccessors()
- Returns:
- the successors value
-
getInstructionNumber
public int getInstructionNumber()
- Returns:
- the instruction number
-
getSentenceNumber
public int getSentenceNumber()
- Returns:
- the sentence number
-
isChunkStart
public boolean isChunkStart()
- Returns:
- true if the word is at the start of a chunk
-
getLemma
public String getLemma()
-
isNamedEntity
public boolean isNamedEntity()
- Specified by:
isNamedEntityin interfaceWord- Returns:
- true if the word is a named entity
-
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
-
-