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
    System.Object
    SegToken
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Analysis.Cn.Smart.Hhmm
    Assembly: Lucene.Net.Analysis.SmartCn.dll
    Syntax
    public class SegToken

    Constructors

    | Improve this Doc View Source

    SegToken(Char[], Int32, Int32, WordType, Int32)

    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
    System.Char[] idArray

    character array containing text

    System.Int32 start

    start offset of SegToken in original sentence

    System.Int32 end

    end offset of SegToken in original sentence

    WordType wordType

    WordType of the text

    System.Int32 weight

    word frequency

    Properties

    | Improve this Doc View Source

    CharArray

    Character array containing token text

    Declaration
    public char[] CharArray { get; set; }
    Property Value
    Type Description
    System.Char[]
    | Improve this Doc View Source

    EndOffset

    end offset into original sentence

    Declaration
    public int EndOffset { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    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
    System.Int32
    | Improve this Doc View Source

    StartOffset

    start offset into original sentence

    Declaration
    public int StartOffset { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Weight

    word frequency

    Declaration
    public int Weight { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    WordType

    WordType of the text

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

    Methods

    | Improve this Doc View Source

    Equals(Object)

    System.Object.Equals(System.Object)
    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    System.Object.GetHashCode()
    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.