Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PersianNormalizer

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Inheritance
    object
    PersianNormalizer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis.Fa
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class PersianNormalizer

    Fields

    FARSI_YEH

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char FARSI_YEH = 'ی'
    Field Value
    Type Description
    char

    HAMZA_ABOVE

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char HAMZA_ABOVE = 'ٔ'
    Field Value
    Type Description
    char

    HEH

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char HEH = 'ه'
    Field Value
    Type Description
    char

    HEH_GOAL

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char HEH_GOAL = 'ہ'
    Field Value
    Type Description
    char

    HEH_YEH

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char HEH_YEH = 'ۀ'
    Field Value
    Type Description
    char

    KAF

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char KAF = 'ك'
    Field Value
    Type Description
    char

    KEHEH

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char KEHEH = 'ک'
    Field Value
    Type Description
    char

    YEH

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char YEH = 'ي'
    Field Value
    Type Description
    char

    YEH_BARREE

    Normalizer for Persian.

    Normalization is done in-place for efficiency, operating on a termbuffer.

    Normalization is defined as:

    • Normalization of various heh + hamza forms and heh goal to heh.
    • Normalization of farsi yeh and yeh barree to arabic yeh
    • Normalization of persian keheh to arabic kaf
    Declaration
    public const char YEH_BARREE = 'ے'
    Field Value
    Type Description
    char

    Methods

    Normalize(char[], int)

    Normalize an input buffer of Persian text

    Declaration
    public virtual int Normalize(char[] s, int len)
    Parameters
    Type Name Description
    char[] s

    input buffer

    int len

    length of input buffer

    Returns
    Type Description
    int

    length of input buffer after normalization

    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.