Constructors Summary |
---|
public StopAnalyzer()Builds an analyzer which removes words in ENGLISH_STOP_WORDS.
stopWords = StopFilter.makeStopSet(ENGLISH_STOP_WORDS);
|
public StopAnalyzer(Set stopWords)Builds an analyzer with the stop words from the given set.
this.stopWords = stopWords;
|
public StopAnalyzer(String[] stopWords)Builds an analyzer which removes words in the provided array.
this.stopWords = StopFilter.makeStopSet(stopWords);
|
public StopAnalyzer(File stopwordsFile)Builds an analyzer with the stop words from the given file.
stopWords = WordlistLoader.getWordSet(stopwordsFile);
|
public StopAnalyzer(Reader stopwords)Builds an analyzer with the stop words from the given reader.
stopWords = WordlistLoader.getWordSet(stopwords);
|