Interface Token

  • All Known Implementing Classes:
    TokenImpl

    public interface Token
    Interface to access the tokens of a sentence of a document together with their descriptive features.
    • Method Detail

      • getId

        Integer getId()
        The document unambiguous ID of the token
        Returns:
      • getInSentencePosition

        Integer getInSentencePosition()
        The position of the token inside the sentence
        Returns:
      • getContainingSentence

        Integer getContainingSentence()
        The document-wide unambiguous id that references the Sentence of the document that includes the citation marker
        Returns:
      • getWord

        String getWord()
        The token text
        Returns:
      • getLemma

        String getLemma()
        The token lemma
        Returns:
      • getPOS

        String getPOS()
        The token Part-Of-Speech
        Returns:
      • asString

        String asString​(boolean compactOutput)
        String representation of the object
        Returns: