Class MorfologikFilter
Lucene.Net.Analysis.TokenFilter using Morfologik library to transform input tokens into lemma and morphosyntactic (POS) tokens. Applies to Polish only.
MorfologikFilter contains a MorphosyntacticTagsAttribute, which provides morphosyntactic annotations for produced lemmas. See the Morfologik documentation for details.Implements
Inherited Members
TokenFilter.m_input
TokenFilter.End()
TokenStream.Dispose()
AttributeSource.GetAttributeFactory()
AttributeSource.GetAttributeClassesEnumerator()
AttributeSource.GetAttributeImplsEnumerator()
AttributeSource.AddAttributeImpl(Attribute)
AttributeSource.AddAttribute<T>()
AttributeSource.HasAttributes
AttributeSource.HasAttribute<T>()
AttributeSource.GetAttribute<T>()
AttributeSource.ClearAttributes()
AttributeSource.CaptureState()
AttributeSource.RestoreState(AttributeSource.State)
AttributeSource.GetHashCode()
AttributeSource.ReflectWith(IAttributeReflector)
AttributeSource.CloneAttributes()
AttributeSource.CopyTo(AttributeSource)
AttributeSource.ToString()
Namespace: Lucene.Net.Analysis.Morfologik
Assembly: Lucene.Net.Analysis.Morfologik.dll
Syntax
public class MorfologikFilter : TokenFilter, IDisposable
Constructors
MorfologikFilter(TokenStream)
Creates a filter with the default (Polish) dictionary.
Declaration
public MorfologikFilter(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | Input token stream. |
MorfologikFilter(TokenStream, Dictionary)
Creates a filter with a given dictionary.
Declaration
public MorfologikFilter(TokenStream input, Dictionary dict)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | Input token stream. |
Dictionary | dict | Morfologik.Stemming.Dictionary to use for stemming. |
Methods
IncrementToken()
Retrieves the next token (possibly from the list of lemmas).
Declaration
public override sealed bool IncrementToken()
Returns
Type | Description |
---|---|
bool |
Overrides
Lucene.Net.Analysis.TokenStream.IncrementToken()
Reset()
Resets stems accumulator and hands over to superclass.
Declaration
public override void Reset()
Overrides
Lucene.Net.Analysis.TokenFilter.Reset()