Class SegToken
SmartChineseAnalyzer internal token
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
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)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |