Class StopWords.NoOptStopWords

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    StopWords

    public static class StopWords.NoOptStopWords
    extends StopWords
    StopWords implementation that treats everything as a content word.
    See Also:
    Serialized Form
    • Constructor Detail

      • NoOptStopWords

        public NoOptStopWords()
    • Method Detail

      • isStopWord

        public boolean isStopWord​(String word)
        Description copied from class: StopWords
        Checks if the given word is a stopword
        Specified by:
        isStopWord in class StopWords
        Parameters:
        word - the word
        Returns:
        True if a stopword, False if a content word.
      • isTokenStopWord

        protected boolean isTokenStopWord​(Annotation token)
        Description copied from class: StopWords
        Checks if the given token is a stopword
        Specified by:
        isTokenStopWord in class StopWords
        Parameters:
        token - the token
        Returns:
        True if a stopword, False if a content word.