📄 prob.3
字号:
.\" $Id: Prob.3,v 1.1 1996/07/13 01:35:40 stolcke Exp $.TH Prob 3 "$Date: 1996/07/13 01:35:40 $" SRILM.SH NAMEProb \- Probabilities for SRILM.SH SYNOPSIS.B "#include <Prob.h>".SH DESCRIPTION.B Probis a collection of types, constants and utility functions for handlingprobabilities in the SRILM library..SH TYPES.TP.B ProbA floating point number representing a probability..TP.B LogPLogarithm to base 10 of a probability..SH CONSTANTS.TP.B LogP_ZeroLog of probability 0..TP.B LogP_InfLog of probability infinity (not a legal probability, of course)..TP.B LogP_OneLog of probability 1..TP.B LogP_PrecisionThe number of significant digits in a LogP.TP .B Prob_EpsilonA positive value close to 0; probability sums less than this should beconsidered effectively zero..SH FUNCTIONS.TP.B "Boolean parseLogP(const char *\fIstring\fP, LogP &\fIprob\fP)"Converts a floating point string representation into a LogP.Returns.B trueiff the number was parsed correctly.This function should be much faster than generic C library functionsfor floating point parsing.Also, it parses singular LogP's (plus/minus infinity) correctly..TP.B "Prob LogPtoPPL(LogP \fIprob\fP)"Converts a LogP into a perplexity (PPL)..TP.B "ProbToLogP(Prob \fPprob\fP)"Converts a probability into a LogP..TP.B "LogP MixLogP(LogP \fIprob1\fP, LogP \fIprob2\fP, double \fIlambda\fP)"Computes the LogP resulting from interpolating two LogP's.If \fIp1\fP and \fIp2\fP are probabilities corresponding to \fIprob1\fPand \fIprob2\fP, respectively, then the result is the LogP correspondingto \fIlambda\fP * \fIp1\fP + (1 - \fIlambda\fP) * \fIp2\fP..PPThe following functions deal with \fIbytelogs\fP.Bytelogs are logarithms scaled to represent probabilties and likelihoodsas a short integer in SRI's DECIPHER(TM) recognizer(bytelog(\fIp\fP) = log(\fIp\fP) * 10000.5 / 1024)..TP.B "double ProbToBytelog(Prob \fIprob\fP)"Converts a probability to a bytelog..TP.B "double LogPtoBytelog(LogP \fIprob\fP)"Convert a LogP to a bytelog..TP.B "LogP BytelogToLogP(double \fIbytelog\fP)"Convert a bytelog to a LogP..SH "SEE ALSO".SH BUGS.SH AUTHORAndreas Stolcke <stolcke@speech.sri.com>..brCopyright 1995, 1996 SRI International
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -