Package edu.berkeley.nlp.lm.io
Class ComputeLogProbabilityOfTextStream
- java.lang.Object
-
- edu.berkeley.nlp.lm.io.ComputeLogProbabilityOfTextStream
-
public class ComputeLogProbabilityOfTextStream extends java.lang.Object
Computes the log probability of a list of files. With the-g
option, it interprets the next two arguments as avocab_cs.gz
file (seeLmReaders
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
Constructors Constructor Description ComputeLogProbabilityOfTextStream()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] argv)
-