Class ENStopWords

    • Method Detail

      • getInstance

        public static StopWords getInstance()
        Returns:
        the singleton instance of the ENStopWords class
      • 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.