Class DecompoundToken


  • public class DecompoundToken
    extends Token
    A token that was generated from a compound.
    • Field Detail

      • posTag

        private final POS.Tag posTag
    • Constructor Detail

      • DecompoundToken

        public DecompoundToken​(POS.Tag posTag,
                               java.lang.String surfaceForm,
                               int startOffset,
                               int endOffset)
        Creates a new DecompoundToken
        Parameters:
        posTag - The part of speech of the token.
        surfaceForm - The surface form of the token.
        startOffset - The start offset of the token in the analyzed text.
        endOffset - The end offset of the token in the analyzed text.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getLeftPOS

        public POS.Tag getLeftPOS()
        Description copied from class: Token
        Get the left part of speech of the token.
        Specified by:
        getLeftPOS in class Token
      • getRightPOS

        public POS.Tag getRightPOS()
        Description copied from class: Token
        Get the right part of speech of the token.
        Specified by:
        getRightPOS in class Token
      • getReading

        public java.lang.String getReading()
        Description copied from class: Token
        Get the reading of the token.
        Specified by:
        getReading in class Token