|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.java.sen.dictionary.Dictionary
public class Dictionary
The Dictionary
class wraps access to a compiled Sen dictionary
コンストラクタの概要 | |
---|---|
Dictionary(java.lang.String connectionCostFilename,
java.lang.String partOfSpeechInfoFilename,
java.lang.String tokenFilename,
java.lang.String trieFilename)
|
メソッドの概要 | |
---|---|
CToken[] |
commonPrefixSearch(CharIterator iterator)
Searches for possible morphemes starting at the current position of a CharIterator. |
CToken |
getBOSToken()
Gets a unique beginning-of-string . |
int |
getCost(Node lNode2,
Node lNode,
Node rNode)
Retrieves the cost between three Nodes from the connection cost matrix |
CToken |
getEOSToken()
Gets a unique end-of-string . |
CToken |
getUnknownToken()
Gets a unique unknown-morpheme . |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Dictionary(java.lang.String connectionCostFilename, java.lang.String partOfSpeechInfoFilename, java.lang.String tokenFilename, java.lang.String trieFilename) throws java.io.IOException
connectionCostFilename
- Name of the connection cost matrix filepartOfSpeechInfoFilename
- Name of the part-of-string information
filetokenFilename
- Name of the token filetrieFilename
- Name of the trie file
java.io.IOException
メソッドの詳細 |
---|
public CToken getBOSToken()
CToken
. The CToken
returned by this method is
freshly cloned and not an alias of any other CToken
public CToken getEOSToken()
CToken
. The CToken
returned by this method is
freshly cloned and not an alias of any other CToken
public CToken getUnknownToken()
CToken
. The CToken
returned by this method is
freshly cloned and not an alias of any other CToken
public int getCost(Node lNode2, Node lNode, Node rNode)
lNode2
- The first NodelNode
- The second NoderNode
- The third Node
public CToken[] commonPrefixSearch(CharIterator iterator)
iterator
- The iterator to search from
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |