public class SegToken extends Object
Modifier and Type | Field and Description |
---|---|
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 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
public int endOffset
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 of SegToken in original sentenceend
- end offset of SegToken in original sentencewordType
- WordType
of the textweight
- word frequencypublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.