net.java.sen.dictionary
クラス CToken

java.lang.Object
  上位を拡張 net.java.sen.dictionary.CToken
すべての実装されたインタフェース:
java.lang.Cloneable

public final class CToken
extends java.lang.Object
implements java.lang.Cloneable

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.


フィールドの概要
 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
 
コンストラクタの概要
CToken()
           
 
メソッドの概要
protected  CToken clone()
           
static CToken read(java.nio.ByteBuffer buffer)
          Read a CToken from a ByteBuffer
static void write(java.io.DataOutput output, CToken token)
          Write a CToken to a DataOutput
 
クラス java.lang.Object から継承されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

SIZE

public static final long SIZE
The length in bytes of a stored CToken

関連項目:
定数フィールド値

rcAttr2

public short rcAttr2
Used in Viterbi path cost calculation


rcAttr1

public short rcAttr1
Used in Viterbi path cost calculation


lcAttr

public short lcAttr
Used in Viterbi path cost calculation


length

public short length
The length of the morpheme this CToken wraps


cost

public short cost
The cost of this CToken


partOfSpeechIndex

public int partOfSpeechIndex
The file index in the part-of-speech information file of the morpheme data this CToken wraps

コンストラクタの詳細

CToken

public CToken()
メソッドの詳細

read

public static CToken read(java.nio.ByteBuffer buffer)
Read a CToken from a ByteBuffer

パラメータ:
buffer - The ByteBuffer to read from
戻り値:
The CToken

write

public static void write(java.io.DataOutput output,
                         CToken token)
                  throws java.io.IOException
Write a CToken to a DataOutput

パラメータ:
output - The DataOutput to write to
token - The CToken to write
例外:
java.io.IOException

clone

protected CToken clone()
オーバーライド:
クラス java.lang.Object 内の clone


Copyright ? 2008. All Rights Reserved.