|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkylm.model.ngram.reader.NgramReader
kylm.model.ngram.reader.ArpaNgramReader
public class ArpaNgramReader
A class to read n-gram language models from ARPA files
| Constructor Summary | |
|---|---|
ArpaNgramReader()
|
|
| Method Summary | |
|---|---|
NgramLM |
read(java.io.BufferedReader br)
|
NgramLM |
read(java.io.InputStream is)
Read a language model from an input stream |
| Methods inherited from class kylm.model.ngram.reader.NgramReader |
|---|
read |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArpaNgramReader()
| Method Detail |
|---|
public NgramLM read(java.io.InputStream is)
throws java.io.IOException
NgramReader
read in class NgramReaderis - The input stream to read the model from
java.io.IOException - If the file could not be read from
public NgramLM read(java.io.BufferedReader br)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||