Interface Document

    • Method Detail

      • getProcessingDate

        Calendar getProcessingDate()
        Returns:
        the processing date of the document.
      • getPhrases

        List<? extends Phrase> getPhrases()
        Returns:
        List of all phrases of the document. The phrases are ordered by appearance.
      • getNounPhrases

        List<? extends Phrase> getNounPhrases()
        Returns:
        List of all Noun phrases of the document. The phrases are ordered by appearance.
      • getPhrasesOfType

        List<? extends Phrase> getPhrasesOfType​(PhraseType type)
        Parameters:
        type - type of phrase
        Returns:
        list of phrase of the specific phrasetype contained in the sentence
      • getSentences

        List<? extends Sentence> getSentences()
        Returns:
        List of all sentences within the document. The sentences are ordered by appearance.
      • getWords

        List<? extends Word> getWords()
        Returns:
        List of all words within the document. The words are ordered by appearance.
      • getNamedEntityWords

        List<? extends Word> getNamedEntityWords()
      • annotate

        default 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
      • annotate

        void annotate​(Annotation annotation)
        Annotates the given annotation to this document.
        Parameters:
        annotation - Annotation that should be annotated to this document.
      • toDebugString

        String toDebugString()
        Returns:
        a string containing debug information
      • toExtensiveDebugString

        String toExtensiveDebugString()
        Returns:
        a string containing extensive debug information