⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ppl-scripts.1

📁 这是一款很好用的工具包
💻 1
字号:
.\" $Id: ppl-scripts.1,v 1.3 2002/04/19 14:11:30 stolcke Exp $.TH ppl-scripts 1 "$Date: 2002/04/19 14:11:30 $" "SRILM Tools".SH NAMEppl-scripts, add-ppls, compare-ppls, compute-best-mix, compute-best-sentence-mix, hits-from-log, ppl-from-log, subtract-ppls \- manipulate perplexities.SH SYNOPSIS.B add-ppls .RI [ ppl-file ..].br.B subtract-ppls.I ppl-file1.RI [ ppl-file2 ...].br.B ppl-from-log.RI [ ppl-file ...].br.B hits-from-log.RI [ ppl-file ...].br.B compare-ppls [\c.BI mindelta= D\c].I ppl-file1.I ppl-file2.br.B compute-best-mix[\c.BI lambda=' "l1 l2".RB ... '.BI precision= P\c].I ppl-file1.RI [ ppl-file2 ...].br.B compute-best-sentence-mix[\c.BI lambda=' "l1 l2".RB ... '.BI precision= P\c].I ppl-file1.RI [ ppl-file2 ...].SH DESCRIPTIONThese scripts process the output of the .BR ngram (1)option.B \-pplto extract various useful information.They are particularly convenient in analyzing the performance (perplexity) of language models on specific subsets of the test data,or to compare and combine multiple models..PP.B add-ppls takes several ppl output files and computes an aggregate perplexity andcorpus statistics.Its output is suitable for subsequent manipulation by.B add-ppls or.BR subtract-ppls ..PP.B subtract-pplssimilarly computes an aggregate perplexity by removing thestatistics of zero or more.I ppl-file2from those in.IR ppl-file1 .Its output is suitable for subsequent manipulation by.B add-ppls or.BR subtract-ppls ..PP.B ppl-from-logrecomputes the total perplexities and statistics from individuallines in.B "ngram \-debug 2 \-ppl"output.Combined with some filtering of that output this allows computing perplexities on interesting subsets of words..PP.B hits-from-logcomputes N-gram hit rates from.B "ngram \-debug 2 \-ppl"output..PP.B compare-pplstallies the number of words for which two language models produce the same,higher, or lower probabilities.The input files should be .B "ngram \-debug 2 \-ppl"output for the two models on the same test set.The parameter.I Dis the minimum absolute difference for two log probabilities to be considered different (the default is 0)..PP.B compute-best-mixtakes the output of several.B "ngram \-debug 2 \-ppl"runs on the same test set and computes the optimal interpolation weights for the corresponding models,i.e., the weights that minimize the perplexity of an interpolated model.Initial weights may be specified as.IR "l1 l2 ..." .The computation is iterative and stops when the interpolation weightschange by less than.I P (default 0.001)..PP.B compute-best-sentence-mixsimilarly optimizes the weights for sentence-level interpolation of LMs.It requires input files generated by.BR "ngram \-debug 1 \-ppl" .(Sentence-level mixtures can be implemented using the .B "ngram \-hmm"option, by constructing a suitable HMM structure.).SH "SEE ALSO"ngram(1)..SH BUGSAll scripts depend on the idiosyncrasies of.B "ngram \-ppl" output..SH AUTHORAndreas Stolcke <stolcke@speech.sri.com>..brCopyright 1995-2002 SRI International

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -