/** * Creates a new HunspellStemFilter that will stem tokens from the given TokenStream using affix rules in the provided * HunspellDictionary * * @param input TokenStream whose tokens will be stemmed * @param dictionary HunspellDictionary containing the affix rules and words that will be used to stem the tokens * @param dedup true if only unique terms should be output. */ public HunspellStemFilter(TokenStream input, HunspellDictionary dictionary, boolean dedup) { super(input); this.dedup = dedup; this.stemmer = new HunspellStemmer(dictionary); }
dicInputStream.close(); HunspellStemmer stemmer = new HunspellStemmer(dictionary);