Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SegToken

    SmartChineseAnalyzer internal token

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    SegToken
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis.Cn.Smart.Hhmm
    Assembly: Lucene.Net.Analysis.SmartCn.dll
    Syntax
    public class SegToken

    Constructors

    SegToken(char[], int, int, WordType, int)

    Create a new SegToken from a character array.

    Declaration
    public SegToken(char[] idArray, int start, int end, WordType wordType, int weight)
    Parameters
    Type Name Description
    char[] idArray

    character array containing text

    int start

    start offset of SegToken in original sentence

    int end

    end offset of SegToken in original sentence

    WordType wordType

    WordType of the text

    int weight

    word frequency

    Properties

    CharArray

    Character array containing token text

    Declaration
    public char[] CharArray { get; set; }
    Property Value
    Type Description
    char[]

    EndOffset

    end offset into original sentence

    Declaration
    public int EndOffset { get; set; }
    Property Value
    Type Description
    int

    Index

    during segmentation, this is used to store the index of the token in the token list table

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    int

    StartOffset

    start offset into original sentence

    Declaration
    public int StartOffset { get; set; }
    Property Value
    Type Description
    int

    Weight

    word frequency

    Declaration
    public int Weight { get; set; }
    Property Value
    Type Description
    int

    WordType

    WordType of the text

    Declaration
    public WordType WordType { get; set; }
    Property Value
    Type Description
    WordType

    Methods

    Equals(object)

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    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.