Interface Sentence

    • Method Detail

      • getDocument

        Document getDocument()
        Returns:
        the document the sentence is contained in
      • getWords

        List<? extends Word> getWords()
        Returns:
        the words contained in the sentence
      • getPhrases

        List<? extends Phrase> getPhrases()
        Returns:
        list of phrases contained in the sentence
      • getNounPhrases

        List<? extends Phrase> getNounPhrases()
        Returns:
        list of noun phrase contained in the sentence
      • getPhrasesOfType

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