public final class JapanesePartOfSpeechStopFilter extends FilteringTokenFilter
AttributeSource.State
version
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
DEFAULT_ATTRIBUTE_FACTORY
Constructor and Description |
---|
JapanesePartOfSpeechStopFilter(TokenStream input,
Set<String> stopTags)
Create a new
JapanesePartOfSpeechStopFilter . |
JapanesePartOfSpeechStopFilter(Version version,
boolean enablePositionIncrements,
TokenStream input,
Set<String> stopTags)
Deprecated.
enablePositionIncrements=false is not supported anymore as of Lucene 4.4.
|
JapanesePartOfSpeechStopFilter(Version version,
TokenStream input,
Set<String> stopTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept()
Override this method and return if the current input token should be returned by
FilteringTokenFilter.incrementToken() . |
end, getEnablePositionIncrements, incrementToken, reset, setEnablePositionIncrements
close
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
@Deprecated public JapanesePartOfSpeechStopFilter(Version version, boolean enablePositionIncrements, TokenStream input, Set<String> stopTags)
public JapanesePartOfSpeechStopFilter(TokenStream input, Set<String> stopTags)
JapanesePartOfSpeechStopFilter
.input
- the TokenStream
to consumestopTags
- the part-of-speech tags that should be removed@Deprecated public JapanesePartOfSpeechStopFilter(Version version, TokenStream input, Set<String> stopTags)
JapanesePartOfSpeechStopFilter(TokenStream,Set)
protected boolean accept()
FilteringTokenFilter
FilteringTokenFilter.incrementToken()
.accept
in class FilteringTokenFilter
Copyright © 2000–2023 The Apache Software Foundation. All rights reserved.