|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kylm.model.ngram.reader.NgramReader
public abstract class NgramReader
Constructor Summary | |
---|---|
NgramReader()
|
Method Summary | |
---|---|
abstract NgramLM |
read(java.io.InputStream is)
Read a language model from an input stream |
NgramLM |
read(java.lang.String fileName)
Read a language model from a file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NgramReader()
Method Detail |
---|
public NgramLM read(java.lang.String fileName) throws java.io.IOException
fileName
- The file to read the model from
java.io.IOException
- If the file could not be written topublic abstract NgramLM read(java.io.InputStream is) throws java.io.IOException
is
- The input stream to read the model from
java.io.IOException
- If the file could not be read from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |