#include <shiftlm.h>
Public Member Functions | |
symshiftbeta (char *ngtfile, int depth=0, int prunefreq=0, double beta=-1) | |
int | discount (ngram ng, int size, double &fstar, double &lambda, int cv=0) |
Definition at line 54 of file shiftlm.h.
symshiftbeta::symshiftbeta | ( | char * | ngtfile, | |
int | depth = 0 , |
|||
int | prunefreq = 0 , |
|||
double | beta = -1 | |||
) | [inline] |
int symshiftbeta::discount | ( | ngram | ng, | |
int | size, | |||
double & | fstar, | |||
double & | lambda, | |||
int | cv = 0 | |||
) | [virtual] |
Reimplemented from shiftbeta.
Definition at line 541 of file shiftlm.cpp.
References shiftbeta::beta, ngramtable::dict, ngramtable::entries(), ngram::freq, ngramtable::totfreq(), ngram::trans(), interplm::unigr(), and ngram::wordp().