Class TokenImpl

  • All Implemented Interfaces:
    Token

    public class TokenImpl
    extends BaseDocumentElem
    implements Token
    IMPORTANT: Never instantiate directly this class!
    Sentence of a document together with its descriptive features.
    • Method Detail

      • getId

        public Integer getId()
        Description copied from interface: Token
        The document unambiguous ID of the token
        Specified by:
        getId in interface Token
        Returns:
      • getInSentencePosition

        public Integer getInSentencePosition()
        Description copied from interface: Token
        The position of the token inside the sentence
        Specified by:
        getInSentencePosition in interface Token
        Returns:
      • getContainingSentence

        public Integer getContainingSentence()
        Description copied from interface: Token
        The document-wide unambiguous id that references the Sentence of the document that includes the citation marker
        Specified by:
        getContainingSentence in interface Token
        Returns:
      • getWord

        public String getWord()
        Description copied from interface: Token
        The token text
        Specified by:
        getWord in interface Token
        Returns:
      • getLemma

        public String getLemma()
        Description copied from interface: Token
        The token lemma
        Specified by:
        getLemma in interface Token
        Returns:
      • getPOS

        public String getPOS()
        Description copied from interface: Token
        The token Part-Of-Speech
        Specified by:
        getPOS in interface Token
        Returns:
      • setId

        public void setId​(Integer id)
      • setInSentencePosition

        public void setInSentencePosition​(Integer inSentencePosition)
      • setContainingSentence

        public void setContainingSentence​(Integer containingSentence)
      • setWord

        public void setWord​(String word)
      • setLemma

        public void setLemma​(String lemma)
      • setPOS

        public void setPOS​(String pOS)
      • asString

        public String asString​(boolean compactOutput)
        Description copied from interface: Token
        String representation of the object
        Specified by:
        asString in interface Token
        Returns: