Class SnowballFilter
A filter that stems words using a Snowball-generated stemmer.
Available stemmers are listed in Lucene.Net.Tartarus.Snowball.Ext.
NOTE: SnowballFilter expects lowercased text.
- For the Turkish language, see TurkishLowerCaseFilter.
- For other languages, see LowerCaseFilter.
Note: This filter is aware of the Lucene.Net.Analysis.TokenAttributes.KeywordAttribute. To prevent
certain terms from being passed to the stemmer
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
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Snowball
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class SnowballFilter : TokenFilter, IDisposable
Constructors
| Improve this Doc View SourceSnowballFilter(TokenStream, SnowballProgram)
Declaration
public SnowballFilter(TokenStream input, SnowballProgram stemmer)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Analysis.TokenStream | input | |
SnowballProgram | stemmer |
SnowballFilter(TokenStream, String)
Construct the named stemming filter.
Available stemmers are listed in Lucene.Net.Tartarus.Snowball.Ext. The name of a stemmer is the part of the class name before "Stemmer", e.g., the stemmer in EnglishStemmer is named "English".
Declaration
public SnowballFilter(TokenStream in, string name)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Analysis.TokenStream | in | the input tokens to stem |
System.String | name | the name of a stemmer |
Methods
| Improve this Doc View SourceIncrementToken()
Returns the next input Lucene.Net.Analysis.Token, after being stemmed
Declaration
public sealed override bool IncrementToken()
Returns
Type | Description |
---|---|
System.Boolean |