Class 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 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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.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​(java.lang.String[] argv)
                         throws java.io.FileNotFoundException,
                                java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException