#include <linearlm.h>


Public Member Functions | |
| linearwb (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) |
| ~linearwb () | |
Definition at line 26 of file linearlm.h.
| linearwb::linearwb | ( | char * | ngtfile, | |
| int | depth = 0, |
|||
| int | prunefreq = 0, |
|||
| TABLETYPE | tt = SHIFTBETA_B | |||
| ) |
Definition at line 44 of file linearlm.cpp.
| linearwb::~linearwb | ( | ) | [inline] |
Definition at line 34 of file linearlm.h.
| int linearwb::discount | ( | ngram | ng, | |
| int | size, | |||
| double & | fstar, | |||
| double & | lambda, | |||
| int | cv = 0 | |||
| ) | [virtual] |
Reimplemented from mdiadaptlm.
Definition at line 67 of file linearlm.cpp.
References ngram::ckhisto(), ngramtable::dict, ngram::freq, ngram::link, dictionary::oovcode(), interplm::prunesingletons(), ngram::succ, ngramtable::succ1(), ngram::trans(), interplm::unigr(), and ngram::wordp().

| int linearwb::train | ( | ) | [virtual] |
Reimplemented from interplm.
Definition at line 55 of file linearlm.cpp.
References interplm::gensuccstat(), and interplm::trainunigr().

1.5.9