Interface Phrase

  • All Superinterfaces:
    Annotatable, TextElement
    All Known Implementing Classes:
    ParsePhrase

    public interface Phrase
    extends TextElement
    Classes implementing this interface represent a Phrase. Examples for phrases include noun phrases and verb phrases.
    Author:
    Jan Keim
    • Method Detail

      • getType

        PhraseType getType()
        Returns:
        the PhraseType
      • getTextWithoutLeadingStopwords

        String getTextWithoutLeadingStopwords()
        Returns:
        String containing the text without any leading stopwords
      • getWords

        List<? extends Word> getWords()
        Returns:
        a list of the words contained in the phrase
      • containsWord

        boolean containsWord​(Word word)
        Checks whether a word is contained in the phrase.
        Parameters:
        word - Word that should be checked for
        Returns:
        true, if the given word is contained in the phrase, else false