Package edu.berkeley.nlp.lm.io
Class ComputeLogProbabilityOfTextStream
java.lang.Object
edu.berkeley.nlp.lm.io.ComputeLogProbabilityOfTextStream
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
Constructors -
Method Summary
-
Constructor Details
-
ComputeLogProbabilityOfTextStream
public ComputeLogProbabilityOfTextStream()
-
-
Method Details
-
main
- Throws:
FileNotFoundException
IOException
-