kylm.model.ngram.writer
Class WFSTNgramWriter

java.lang.Object
  extended by kylm.model.ngram.writer.NgramWriter
      extended by kylm.model.ngram.writer.WFSTNgramWriter

public class WFSTNgramWriter
extends NgramWriter

A class to write language models to text files that can be imported as Weighted Finite State Transducers

Author:
neubig

Constructor Summary
WFSTNgramWriter()
           
 
Method Summary
 void write(NgramLM lm, java.io.OutputStream os)
          Write the language model to a generic output stream
 
Methods inherited from class kylm.model.ngram.writer.NgramWriter
write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WFSTNgramWriter

public WFSTNgramWriter()
Method Detail

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 write
os - The output stream to write to
Throws:
java.io.IOException - If there was an error during output