Class Token


  • public class Token
    extends Annotated
    Individual string in a Document
    Since:
    5.2
    Version:
    5.2
    Author:
    Pedro Oliveira
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CHUNK  
      static java.lang.String LEMMA  
      static java.lang.String NER  
      static java.lang.String NER_SPAN  
      static java.lang.String POS  
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(Document theDocument, int theSentence, java.lang.String theText)  
    • Constructor Detail

      • Token

        public Token​(Document theDocument,
                     int theSentence,
                     java.lang.String theText)
    • Method Detail

      • text

        public java.lang.String text()
      • sentence

        public int sentence()
      • length

        public int length()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Annotated