Interface Word

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

    public interface Word
    extends TextElement
    Classes implementing this interface represent a word (within a text) Words should have a part-of-speech and a lemma.
    Author:
    Jan Keim
    • Method Detail

      • getPos

        String getPos()
        Returns:
        the POS of the word
      • isStopword

        default boolean isStopword()
        Returns:
        true if the word is a stopword
      • isNamedEntity

        boolean isNamedEntity()
        Returns:
        true if the word is a named entity
      • getLemma

        String getLemma()
        Returns:
        the lemma of the word
      • isPunctuation

        boolean isPunctuation()
        Returns:
        true if the "word" is actually a punctuation symbol
      • isStopword

        static boolean isStopword​(String word)
        Checks whether a given word is a stopword
        Parameters:
        word - word that should be checked
        Returns:
        true if the given word is a stopword