edu.berkeley.nlp.lm.io
Class ComputeLogProbabilityOfTextStream

java.lang.Object
  extended by edu.berkeley.nlp.lm.io.ComputeLogProbabilityOfTextStream

public class ComputeLogProbabilityOfTextStream
extends Object

Computes the log probability of a list of files. With the -g option, it interprets the next two arguments as a vocab_cs.gz file (see LmReaders for more detail) and a Berkeley LM binary, respectively. Without -g, it interprets the next file as a Berkeley LM binary. All remaining files are treated as plain-text (possibly gzipped) files which have one sentence per line; a dash is used to indicate that text should from standard input. If no files are given, reads from standard input.

Author:
adampauls

Constructor Summary
ComputeLogProbabilityOfTextStream()
           
 
Method Summary
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeLogProbabilityOfTextStream

public ComputeLogProbabilityOfTextStream()
Method Detail

main

public static void main(String[] argv)
                 throws FileNotFoundException,
                        IOException
Throws:
FileNotFoundException
IOException