Class ParseWord

    • Constructor Detail

      • ParseWord

        public ParseWord​(edu.kit.ipd.parse.luna.graph.INode node)
    • Method Detail

      • isPunctuation

        public boolean isPunctuation()
        Specified by:
        isPunctuation in interface Word
        Returns:
        true if the "word" is actually a punctuation symbol
      • getPos

        public String getPos()
        Specified by:
        getPos in interface Word
        Returns:
        the POS of the word
      • 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()
        Specified by:
        getLemma in interface Word
        Returns:
        the lemma of the word
      • isNamedEntity

        public boolean isNamedEntity()
        Specified by:
        isNamedEntity in interface Word
        Returns:
        true if the word is a named entity
      • annotate

        public void annotate​(Document document,
                             Annotation annotation)
        Description copied from interface: Annotatable
        Annotates the given annotation to the given document
        Specified by:
        annotate in interface Annotatable
        Parameters:
        document - Document where the annotation should be added to
        annotation - Annotation that should be added
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object