#include <shiftlm.h>
Public Member Functions | |
shiftone (char *ngtfile, int depth=0, int prunefreq=0, TABLETYPE tt=SHIFTBETA_B) | |
int | train () |
int | discount (ngram ng, int size, double &fstar, double &lambda, int cv=0) |
~shiftone () | |
Protected Attributes | |
int | prunethresh |
double | beta |
Definition at line 24 of file shiftlm.h.
shiftone::shiftone | ( | char * | ngtfile, | |
int | depth = 0 , |
|||
int | prunefreq = 0 , |
|||
TABLETYPE | tt = SHIFTBETA_B | |||
) |
int shiftone::discount | ( | ngram | ng, | |
int | size, | |||
double & | fstar, | |||
double & | lambda, | |||
int | cv = 0 | |||
) | [virtual] |
Reimplemented from mdiadaptlm.
Definition at line 61 of file shiftlm.cpp.
References beta, ngram::ckhisto(), ngramtable::dict, ngram::freq, dictionary::oovcode(), prunethresh, ngram::succ, ngram::trans(), interplm::unigr(), and ngram::wordp().
int shiftone::train | ( | ) | [virtual] |
Reimplemented from interplm.
Definition at line 54 of file shiftlm.cpp.
References interplm::trainunigr().
double shiftone::beta [protected] |
int shiftone::prunethresh [protected] |