public class SegToken extends Object
WARNING: The status of the analyzers/smartcn analysis.cn.smart package is experimental. The APIs and file formats introduced here might change in the future and will not be supported anymore in such a case.
| Modifier and Type | Field and Description |
|---|---|
char[] |
charArray
Character array containing token text
|
int |
endOffset
end offset into
charArray |
int |
index
during segmentation, this is used to store the index of the token in the token list table
|
int |
startOffset
start offset into
charArray |
int |
weight
word frequency
|
int |
wordType
WordType of the text |
| Constructor and Description |
|---|
SegToken(char[] idArray,
int start,
int end,
int wordType,
int weight)
Create a new SegToken from a character array.
|
public char[] charArray
public int startOffset
charArraypublic int endOffset
charArraypublic int wordType
WordType of the textpublic int weight
public int index
public SegToken(char[] idArray,
int start,
int end,
int wordType,
int weight)
idArray - character array containing textstart - start offset into idArrayend - end offset of idArraywordType - WordType of the textweight - word frequencypublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.