@Override public TokenStream create(TokenStream tokenStream) { return new JapanesePartOfSpeechStopFilter(tokenStream, stopTags); }
@Override public TokenStream create(final TokenStream tokenStream) { return new JapanesePartOfSpeechStopFilter(tokenStream, stopTags); }
@Override public TokenStream create(TokenStream stream) { // if stoptags is null, it means the file is empty return stopTags == null ? stream : new JapanesePartOfSpeechStopFilter(enablePositionIncrements, stream, stopTags); }