lmInterpolation Class Reference

#include <lmInterpolation.h>

Inheritance diagram for lmInterpolation:

Inheritance graph
[legend]
Collaboration diagram for lmInterpolation:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 lmInterpolation (float nlf=0.0, float dlfi=0.0)
virtual ~lmInterpolation ()
void load (const std::string filename, int mmap=0)
lmContainerload_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 dictionarygetDict () 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)


Detailed Description

Definition at line 44 of file lmInterpolation.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void lmInterpolation::dictionary_incflag ( const bool  flag  )  [inline, virtual]

Reimplemented from lmContainer.

Definition at line 115 of file lmInterpolation.h.

References dictionary::incflag().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

virtual double lmInterpolation::getlogOOVpenalty (  )  const [inline, virtual]

Reimplemented from lmContainer.

Definition at line 91 of file lmInterpolation.h.

bool lmInterpolation::is_inverted (  )  [inline, virtual]

Reimplemented from lmContainer.

Definition at line 108 of file lmInterpolation.h.

bool lmInterpolation::is_inverted ( const bool  flag  )  [inline, virtual]

Reimplemented from lmContainer.

Definition at line 102 of file lmInterpolation.h.

virtual bool lmInterpolation::is_OOV ( int  code  )  [inline, virtual]

Reimplemented from lmContainer.

Definition at line 119 of file lmInterpolation.h.

References getDict().

Here is the call graph for this function:

void lmInterpolation::load ( const std::string  filename,
int  mmap = 0 
) [virtual]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

int lmInterpolation::maxlevel (  )  const [inline, virtual]

Reimplemented from lmContainer.

Definition at line 77 of file lmInterpolation.h.

Referenced by load().

Here is the caller graph for this function:

virtual void lmInterpolation::setDict ( dictionary d  )  [inline, virtual]

Definition at line 81 of file lmInterpolation.h.

double lmInterpolation::setlogOOVpenalty ( double  oovp  )  [inline, virtual]

Reimplemented from lmContainer.

Definition at line 97 of file lmInterpolation.h.

double lmInterpolation::setlogOOVpenalty ( int  dub  )  [virtual]

Reimplemented from lmContainer.

Definition at line 239 of file lmInterpolation.cpp.

References dictionary::size().

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:31:49 2017 for Moses by  doxygen 1.5.9