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 SourceSegToken(Char[], Int32, Int32, WordType, Int32)
Create a new Seg
Declaration
public SegToken(char[] idArray, int start, int end, WordType wordType, int weight)
Parameters
Type | Name | Description |
---|---|---|
System. |
idArray | character array containing text |
System. |
start | start offset of Seg |
System. |
end | end offset of Seg |
Word |
wordType | Word |
System. |
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. |
EndOffset
end offset into original sentence
Declaration
public int EndOffset { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
StartOffset
start offset into original sentence
Declaration
public int StartOffset { get; set; }
Property Value
Type | Description |
---|---|
System. |
Weight
word frequency
Declaration
public int Weight { get; set; }
Property Value
Type | Description |
---|---|
System. |
WordType
Word
Declaration
public WordType WordType { get; set; }
Property Value
Type | Description |
---|---|
Word |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |