| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.analysis.cn.smart.hhmm.SegToken
public class SegToken
SmartChineseAnalyzer internal token
| Field Summary | |
|---|---|
 char[] | 
charArray
Character array containing token text  | 
 int | 
endOffset
end offset into original sentence  | 
 int | 
index
during segmentation, this is used to store the index of the token in the token list table  | 
 int | 
startOffset
start offset into original sentence  | 
 int | 
weight
word frequency  | 
 int | 
wordType
WordType of the text | 
| Constructor Summary | |
|---|---|
SegToken(char[] idArray,
         int start,
         int end,
         int wordType,
         int weight)
Create a new SegToken from a character array.  | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(Object obj)
 | 
 int | 
hashCode()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public char[] charArray
public int startOffset
public int endOffset
public int wordType
WordType of the text
public int weight
public int index
| Constructor Detail | 
|---|
public SegToken(char[] idArray,
                int start,
                int end,
                int wordType,
                int weight)
idArray - character array containing textstart - start offset of SegToken in original sentenceend - end offset of SegToken in original sentencewordType - WordType of the textweight - word frequency| Method Detail | 
|---|
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||