Class ConfigurableStopWordsService

    • Constructor Detail

      • ConfigurableStopWordsService

        public ConfigurableStopWordsService()
    • Method Detail

      • configure

        public void configure​(Conf conf)
        Description copied from interface: Configurable
        Configures this instance with the specified Conf.
        Specified by:
        configure in interface Configurable
        Parameters:
        conf - the Conf instance used to configure this instance.
      • test

        public boolean test​(String word)
        Description copied from interface: StopWordsService
        Checks whether a word is a stop word.
        Specified by:
        test in interface StopWordsService
        Parameters:
        word - the word to filter.
        Returns:
        true if the word is a stop word, false otherwise.