#include <mixture.h>


Public Member Functions | |
| mixture (char *bigtable, char *sublminfo, int depth, int prunefreq=0, char *ipfile=NULL, char *opfile=NULL) | |
| int | train () |
| int | savepar (char *opf) |
| int | loadpar (char *opf) |
| int | dub () |
| int | dub (int value) |
| void | settying (int a, int b) |
| int | discount (ngram ng, int size, double &fstar, double &lambda, int cv=0) |
| ~mixture () | |
Definition at line 28 of file mixture.h.
| mixture::mixture | ( | char * | bigtable, | |
| char * | sublminfo, | |||
| int | depth, | |||
| int | prunefreq = 0, |
|||
| char * | ipfile = NULL, |
|||
| char * | opfile = NULL | |||
| ) |
Definition at line 58 of file mixture.cpp.
References ngramtable::augment(), CMDENUMTYPE, CMDSTRINGTYPE, CMDSUBRANGETYPE, DeclareParams(), ngramtable::dict, dictionary::encode(), GetParams(), LINEAR_WB, MIXTURE, MOD_SHIFT_BETA, MSHIFTBETA_I, NULL, dictionary::OOV(), SHIFT_BETA, SHIFT_ONE, SHIFTBETA_I, and SIMPLE_I.

| int mixture::discount | ( | ngram | ng, | |
| int | size, | |||
| double & | fstar, | |||
| double & | lambda, | |||
| int | cv = 0 | |||
| ) | [virtual] |
Reimplemented from mdiadaptlm.
Definition at line 388 of file mixture.cpp.
References ngramtable::dict, interplm::discount(), dictionary::dub(), dictionary::oovcode(), dictionary::size(), ngram::trans(), and ngram::wordp().

| int mixture::dub | ( | int | value | ) | [inline, virtual] |
Reimplemented from interplm.
Definition at line 52 of file mixture.h.
References ngramtable::dict, dictionary::dub(), and interplm::dub().

| int mixture::dub | ( | ) | [inline, virtual] |
Reimplemented from interplm.
Definition at line 51 of file mixture.h.
References ngramtable::dict, and dictionary::dub().
Referenced by train().


| int mixture::loadpar | ( | char * | opf | ) |
Definition at line 207 of file mixture.cpp.
References interplm::lmsize(), and mfstream::readx().
Referenced by train().


| int mixture::savepar | ( | char * | opf | ) |
Definition at line 192 of file mixture.cpp.
References interplm::lmsize(), and mfstream::writex().
Referenced by train().


| int mixture::train | ( | ) | [virtual] |
Reimplemented from interplm.
Definition at line 236 of file mixture.cpp.
References interplm::backoff, CONT, ngramtable::dict, interplm::discount(), dictionary::dub(), interplm::dub(), dub(), dictionary::encode(), ngram::freq, INIT, k, interplm::lmsize(), loadpar(), dictionary::OOV(), dictionary::oovcode(), mdiadaptlm::prob(), savepar(), ngramtable::scan(), dictionary::size(), interplm::train(), ngram::trans(), ngram::wordp(), and interplm::zerofreq().

1.5.9