Class DutchStemFilter
A Lucene.Net.Analysis.TokenFilter that stems Dutch words.
It supports a table of words that should not be stemmed at all. The stemmer used can be changed at runtime after the filter object is created (as long as it is a DutchStemmer).
To prevent terms from being stemmed use an instance of KeywordMarkerFilter or a custom Lucene.Net.Analysis.TokenFilter that sets the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute before this Lucene.Net.Analysis.TokenStream.
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Nl
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Obsolete("(3.1) Use Snowball.SnowballFilter with Tartarus.Snowball.Ext.DutchStemmer instead, which has the same functionality. This filter will be removed in Lucene 5.0")]
public sealed class DutchStemFilter : TokenFilter, IDisposable
Constructors
DutchStemFilter(TokenStream)
A Lucene.Net.Analysis.TokenFilter that stems Dutch words.
It supports a table of words that should not be stemmed at all. The stemmer used can be changed at runtime after the filter object is created (as long as it is a DutchStemmer).
To prevent terms from being stemmed use an instance of KeywordMarkerFilter or a custom Lucene.Net.Analysis.TokenFilter that sets the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute before this Lucene.Net.Analysis.TokenStream.
Declaration
public DutchStemFilter(TokenStream @in)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | in | Input Lucene.Net.Analysis.TokenStream |
See Also
DutchStemFilter(TokenStream, IDictionary<string, string>)
A Lucene.Net.Analysis.TokenFilter that stems Dutch words.
It supports a table of words that should not be stemmed at all. The stemmer used can be changed at runtime after the filter object is created (as long as it is a DutchStemmer).
To prevent terms from being stemmed use an instance of KeywordMarkerFilter or a custom Lucene.Net.Analysis.TokenFilter that sets the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute before this Lucene.Net.Analysis.TokenStream.
Declaration
public DutchStemFilter(TokenStream @in, IDictionary<string, string> stemdictionary)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | in | Input Lucene.Net.Analysis.TokenStream |
IDictionary<string, string> | stemdictionary | Dictionary of word stem pairs, that overrule the algorithm |
See Also
Properties
StemDictionary
Set dictionary for stemming, this dictionary overrules the algorithm, so you can correct for a particular unwanted word-stem pair.
Declaration
public CharArrayDictionary<string> StemDictionary { get; set; }
Property Value
Type | Description |
---|---|
CharArrayDictionary<string> |
See Also
Stemmer
Set a alternative/custom DutchStemmer for this filter.
Declaration
public DutchStemmer Stemmer { get; set; }
Property Value
Type | Description |
---|---|
DutchStemmer |
See Also
Methods
IncrementToken()
Returns the next token in the stream, or null at EOS
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
bool |