|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sen.dictionary.CToken
public final class CToken
Represents an entry in the token file. A CToken contains
fixed-length data used in Viterbi path cost calculation, and a pointer to
its linked variable-length morpheme data in the part-of-speech information
file. CTokens are wrapped within Nodes to form
the Viterbi lattice.
| Field Summary | |
|---|---|
short |
cost
The cost of this CToken |
short |
lcAttr
Used in Viterbi path cost calculation |
short |
length
The length of the morpheme this CToken wraps |
int |
partOfSpeechIndex
The file index in the part-of-speech information file of the morpheme data this CToken wraps |
short |
rcAttr1
Used in Viterbi path cost calculation |
short |
rcAttr2
Used in Viterbi path cost calculation |
static long |
SIZE
The length in bytes of a stored CToken |
boolean |
terminator
|
| Constructor Summary | |
|---|---|
CToken()
|
|
| Method Summary | |
|---|---|
CToken |
clone()
|
void |
read(ByteBuffer buffer)
Read a CToken from a ByteBuffer |
static void |
write(DataOutput output,
CToken token)
Write a CToken to a DataOutput |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long SIZE
public short rcAttr2
public short rcAttr1
public short lcAttr
public short length
public short cost
public int partOfSpeechIndex
public boolean terminator
| Constructor Detail |
|---|
public CToken()
| Method Detail |
|---|
public void read(ByteBuffer buffer)
buffer - The ByteBuffer to read from
public static void write(DataOutput output,
CToken token)
throws IOException
output - The DataOutput to write totoken - The CToken to write
IOExceptionpublic CToken clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||