Show / Hide Table of Contents

    Class SegToken

    SmartChineseAnalyzer internal token

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    SegToken
    Namespace: Lucene.Net.Analysis.Cn.Smart.Hhmm
    Assembly: Lucene.Net.Analysis.SmartCn.dll
    Syntax
    public class SegToken : object

    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)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)