|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectnet.java.sen.dictionary.Token
public class Token
A single token from an analysed sentence
Thread Safety: Objects of this class are NOT thread safe and should not be accessed simultaneously by multiple threads.
CAUTION: Morphemes are implemented as lazy proxies onto a
Dictionary, and care should be taken not to access the same
Dictionary from multiple threads. Once any member of a
Morpheme has been read, its link to the Dictionary is broken
and this restriction is relaxed
| コンストラクタの概要 | |
|---|---|
Token()
Creates a blank Token |
|
Token(java.lang.String surface,
int cost,
int start,
int length,
Morpheme morpheme)
Creates a Token with explicit parameters |
|
Token(java.lang.String surface,
Node node)
Creates a Token from a Node |
|
| メソッドの概要 | |
|---|---|
int |
end()
Gets the end of the character range of this Token within the underlying sentence |
boolean |
equals(java.lang.Object object)
|
int |
getCost()
Gets the Viterbi cost of this Token |
int |
getLength()
Gets the length of the character range of this Token within the underlying sentence |
Morpheme |
getMorpheme()
Gets the morpheme data for this Token |
int |
getStart()
Gets the start of the character range of this Token within the underlying sentence |
java.lang.String |
getSurface()
Gets the character range of this Token within the underlying sentence |
void |
setCost(int cost)
Sets the Viterbi cost of this Token |
void |
setLength(int length)
Sets the length of the character range of this Token within the underlying sentence |
void |
setStart(int start)
Sets the start of the character range of this Token within the underlying sentence |
void |
setSurface(java.lang.String surface)
Sets the character range of this Token within the underlying sentence |
java.lang.String |
toString()
Returns the character range of this Token within the underlying sentence |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public Token(java.lang.String surface,
Node node)
surface - The underlying sentence stringnode - The Node to create from
public Token(java.lang.String surface,
int cost,
int start,
int length,
Morpheme morpheme)
surface - The character range within the underlying sentencecost - The Viterbi coststart - The start of the character range within the underlying
sentencelength - The length of the character range within the underlying
sentencemorpheme - The morpheme datapublic Token()
| メソッドの詳細 |
|---|
public int getStart()
public void setStart(int start)
start - The start of the character range of this Token within the
underlying sentencepublic int getLength()
public void setLength(int length)
length - The length of the character range of this Token within the
underlying sentencepublic java.lang.String getSurface()
public void setSurface(java.lang.String surface)
surface - The character range of this Token within the underlying
sentencepublic int getCost()
public void setCost(int cost)
cost - The Viterbi cost of this Tokenpublic Morpheme getMorpheme()
public int end()
public boolean equals(java.lang.Object object)
java.lang.Object 内の equalspublic java.lang.String toString()
java.lang.Object 内の toString
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||