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 SourceSegToken(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 SourceCharArray
Character array containing token text
Declaration
public char[] CharArray { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Char[] |
EndOffset
end offset into original sentence
Declaration
public int EndOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
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 |
StartOffset
start offset into original sentence
Declaration
public int StartOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Weight
word frequency
Declaration
public int Weight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
WordType
WordType of the text
Declaration
public WordType WordType { get; set; }
Property Value
| Type | Description |
|---|---|
| WordType |
Methods
| Improve this Doc View SourceEquals(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()