Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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

    Inheritance
    object
    AttributeSource
    TokenStream
    TokenFilter
    KStemFilter
    Implements
    IDisposable
    Inherited Members
    TokenFilter.End()
    TokenFilter.Reset()
    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.Equals(object)
    AttributeSource.ReflectAsString(bool)
    AttributeSource.ReflectWith(IAttributeReflector)
    AttributeSource.CloneAttributes()
    AttributeSource.CopyTo(AttributeSource)
    AttributeSource.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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
    Lucene.Net.Analysis.TokenStream.IncrementToken()
    Exceptions
    Type Condition
    IOException

    If there is a low-level I/O error.

    Implements

    IDisposable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.