kylm.model.ngram.writer
Class ArpaNgramWriter
java.lang.Object
kylm.model.ngram.writer.NgramWriter
kylm.model.ngram.writer.ArpaNgramWriter
public class ArpaNgramWriter
- extends NgramWriter
A class to write language models to arpa files
- Author:
- neubig
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArpaNgramWriter
public ArpaNgramWriter()
write
public void write(NgramLM lm,
java.io.OutputStream os)
throws java.io.IOException
- Description copied from class:
NgramWriter
- Write the language model to a generic output stream
- Specified by:
write
in class NgramWriter
- Parameters:
lm
- The language model to writeos
- The output stream to write to
- Throws:
java.io.IOException
- If there was an error during output
getNegativeInfinity
public java.lang.Float getNegativeInfinity()
setNegativeInfinity
public void setNegativeInfinity(java.lang.Float negInf)