|
EvaluateNgram
Syntax for MITLM v0.3 and older can be found at EvaluateNgramV01. evaluate-ngramNAMEevaluate-ngram - Evaluates the performance of an n-gram language model. SYNOPSISevaluate-ngram [Options] DESCRIPTIONEvaluates the performance of an n-gram language model. It also supports various n-gram language model conversions, including changes in order, vocabulary, and file format. Filename argument can be an ASCII file, a compressed file (ending in .Z or .gz), or '-' to indicate stdin/stdout. OPTIONS
EXAMPLESCompute the perplexity of an n-gram LM on a text file. evaluate-ngram -lm input.lm -eval-perp test.txt Convert a trigram model to a bigram LM. evaluate-ngram -lm input.lm -order 2 -write-lm output.lm Convert a binary n-gram LM to ARPA text format. evaluate-ngram -lm input.blm -write-lm output.lm | ||||||||||||||||||||||||