|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sen.dictionary.Dictionary
public class Dictionary
The Dictionary class wraps access to a compiled Sen dictionary
| Constructor Summary | |
|---|---|
Dictionary(ShortBuffer connectionCostBuffer,
ByteBuffer partOfSpeechInfoBuffer,
ByteBuffer tokenBuffer,
IntBuffer trieBuffer,
String[] posIndex,
String[] conjTypeIndex,
String[] conjFormIndex)
|
|
| Method Summary | |
|---|---|
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 . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dictionary(ShortBuffer connectionCostBuffer,
ByteBuffer partOfSpeechInfoBuffer,
ByteBuffer tokenBuffer,
IntBuffer trieBuffer,
String[] posIndex,
String[] conjTypeIndex,
String[] conjFormIndex)
IOException| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||