org.apache.lucene.analysis.cn.smart.hhmm
public class SegToken extends java.lang.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
charArray
public int endOffset
charArray
public 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 frequencyCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.