Class KStemFilter
A high-performance kstem filter for english.
See "Viewing Morphology as an Inference Process" (Krovetz, R., Proceedings of the Sixteenth Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, 191-203, 1993). All terms must already be lowercased for this filter to work correctly.Note: This filter is aware of the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute. To prevent certain terms from being passed to the stemmer Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute.IsKeyword should be set to
true
in a previous Lucene.Net.Analysis.TokenStream.
Note: For including the original term as well as the stemmed version, see KeywordRepeatFilterFactory
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.En
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class KStemFilter : TokenFilter, IDisposable
Constructors
KStemFilter(TokenStream)
A high-performance kstem filter for english.
See "Viewing Morphology as an Inference Process" (Krovetz, R., Proceedings of the Sixteenth Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, 191-203, 1993). All terms must already be lowercased for this filter to work correctly.Note: This filter is aware of the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute. To prevent certain terms from being passed to the stemmer Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute.IsKeyword should be set to
true
in a previous Lucene.Net.Analysis.TokenStream.
Note: For including the original term as well as the stemmed version, see KeywordRepeatFilterFactory
Declaration
public KStemFilter(TokenStream @in)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | in |
Methods
IncrementToken()
Returns the next, stemmed, input Token.
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
bool | The stemmed form of a token. |
Overrides
Exceptions
Type | Condition |
---|---|
IOException | If there is a low-level I/O error. |