#include <lmInterpolation.h>


Public Member Functions | |
| lmInterpolation (float nlf=0.0, float dlfi=0.0) | |
| virtual | ~lmInterpolation () |
| void | load (const std::string filename, int mmap=0) |
| lmContainer * | load_lm (int i, int memmap, float nlf, float dlf) |
| virtual double | clprob (ngram ng, double *bow=NULL, int *bol=NULL, char **maxsuffptr=NULL, unsigned int *statesize=NULL, bool *extendible=NULL) |
| virtual double | clprob (int *ng, int ngsize, double *bow=NULL, int *bol=NULL, char **maxsuffptr=NULL, unsigned int *statesize=NULL, bool *extendible=NULL) |
| int | maxlevel () const |
| virtual void | setDict (dictionary *d) |
| virtual dictionary * | getDict () const |
| virtual double | getlogOOVpenalty () const |
| virtual double | setlogOOVpenalty (int dub) |
| double | setlogOOVpenalty (double oovp) |
| bool | is_inverted (const bool flag) |
| bool | is_inverted () |
| virtual void | dictionary_incflag (const bool flag) |
| virtual bool | is_OOV (int code) |
Definition at line 44 of file lmInterpolation.h.
| lmInterpolation::lmInterpolation | ( | float | nlf = 0.0, |
|
| float | dlfi = 0.0 | |||
| ) |
Definition at line 40 of file lmInterpolation.cpp.
| virtual lmInterpolation::~lmInterpolation | ( | ) | [inline, virtual] |
Definition at line 69 of file lmInterpolation.h.
| double lmInterpolation::clprob | ( | int * | ng, | |
| int | ngsize, | |||
| double * | bow = NULL, |
|||
| int * | bol = NULL, |
|||
| char ** | maxsuffptr = NULL, |
|||
| unsigned int * | statesize = NULL, |
|||
| bool * | extendible = NULL | |||
| ) | [virtual] |
Reimplemented from lmContainer.
Definition at line 228 of file lmInterpolation.cpp.
References clprob(), ngram::pushc(), and ngram::size.

| double lmInterpolation::clprob | ( | ngram | ng, | |
| double * | bow = NULL, |
|||
| int * | bol = NULL, |
|||
| char ** | maxsuffptr = NULL, |
|||
| unsigned int * | statesize = NULL, |
|||
| bool * | extendible = NULL | |||
| ) | [virtual] |
Reimplemented from lmContainer.
Definition at line 153 of file lmInterpolation.cpp.
References getDict(), MAX_NGRAM, NULL, and ngram::trans().
Referenced by clprob().


| virtual void lmInterpolation::dictionary_incflag | ( | const bool | flag | ) | [inline, virtual] |
Reimplemented from lmContainer.
Definition at line 115 of file lmInterpolation.h.
References dictionary::incflag().

| virtual dictionary* lmInterpolation::getDict | ( | ) | const [inline, virtual] |
Reimplemented from lmContainer.
Definition at line 86 of file lmInterpolation.h.
Referenced by clprob(), is_OOV(), and load().

| virtual double lmInterpolation::getlogOOVpenalty | ( | ) | const [inline, virtual] |
| bool lmInterpolation::is_inverted | ( | ) | [inline, virtual] |
| bool lmInterpolation::is_inverted | ( | const bool | flag | ) | [inline, virtual] |
| virtual bool lmInterpolation::is_OOV | ( | int | code | ) | [inline, virtual] |
Reimplemented from lmContainer.
Definition at line 119 of file lmInterpolation.h.
References getDict().

| void lmInterpolation::load | ( | const std::string | filename, | |
| int | mmap = 0 | |||
| ) | [virtual] |
Reimplemented from lmContainer.
Definition at line 50 of file lmInterpolation.cpp.
References dictionary::decode(), dictionary::encode(), error(), dictionary::genoovcode(), getDict(), dictionary::incflag(), load_lm(), MAX_LINE, MAX_TOKEN, maxlevel(), NULL, parseWords(), dictionary::size(), and VERBOSE.

| lmContainer * lmInterpolation::load_lm | ( | int | i, | |
| int | memmap, | |||
| float | nlf, | |||
| float | dlf | |||
| ) |
Definition at line 133 of file lmInterpolation.cpp.
References lmContainer::CreateLanguageModel(), lmContainer::init_caches(), lmContainer::is_inverted(), lmContainer::load(), lmContainer::maxlevel(), NULL, lmContainer::requiredMaxlev, and lmContainer::setMaxLoadedLevel().
Referenced by load().


| int lmInterpolation::maxlevel | ( | ) | const [inline, virtual] |
Reimplemented from lmContainer.
Definition at line 77 of file lmInterpolation.h.
Referenced by load().

| virtual void lmInterpolation::setDict | ( | dictionary * | d | ) | [inline, virtual] |
Definition at line 81 of file lmInterpolation.h.
| double lmInterpolation::setlogOOVpenalty | ( | double | oovp | ) | [inline, virtual] |
| double lmInterpolation::setlogOOVpenalty | ( | int | dub | ) | [virtual] |
Reimplemented from lmContainer.
Definition at line 239 of file lmInterpolation.cpp.
References dictionary::size().

1.5.9