net.java.sen
Class Dictionary

java.lang.Object
  extended bynet.java.sen.Dictionary

public class Dictionary
extends java.lang.Object


Constructor Summary
Dictionary(java.lang.String tokenFile, java.lang.String doubleArrayFile, java.lang.String posInfoFile, java.lang.String charset)
           
 
Method Summary
 boolean close()
           
 CToken[] commonPrefixSearch(char[] str, int pos)
           
 CToken getBOSToken()
           
 CToken getEOSToken()
           
 java.lang.String getPosInfo(int f)
           
 CToken getUnknownToken()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dictionary

public Dictionary(java.lang.String tokenFile,
                  java.lang.String doubleArrayFile,
                  java.lang.String posInfoFile,
                  java.lang.String charset)
           throws java.io.IOException
Method Detail

close

public boolean close()

commonPrefixSearch

public CToken[] commonPrefixSearch(char[] str,
                                   int pos)
                            throws java.io.IOException
Throws:
java.io.IOException

getPosInfo

public java.lang.String getPosInfo(int f)

getBOSToken

public CToken getBOSToken()
                   throws java.io.IOException
Throws:
java.io.IOException

getEOSToken

public CToken getEOSToken()
                   throws java.io.IOException
Throws:
java.io.IOException

getUnknownToken

public CToken getUnknownToken()
                       throws java.io.IOException
Throws:
java.io.IOException