shiftbeta Class Reference

#include <shiftlm.h>

Inheritance diagram for shiftbeta:

Inheritance graph
Collaboration diagram for shiftbeta:

Collaboration graph

List of all members.

Public Member Functions

 shiftbeta (char *ngtfile, int depth=0, int prunefreq=0, double beta=-1, TABLETYPE tt=SHIFTBETA_B)
int train ()
int discount (ngram ng, int size, double &fstar, double &lambda, int cv=0)
 ~shiftbeta ()

Protected Attributes

int prunethresh
double * beta

Detailed Description

Definition at line 37 of file shiftlm.h.

Constructor & Destructor Documentation

shiftbeta::shiftbeta ( char *  ngtfile,
int  depth = 0,
int  prunefreq = 0,
double  beta = -1,

Definition at line 127 of file shiftlm.cpp.

References beta, interplm::lmsize(), and prunethresh.

Here is the call graph for this function:

shiftbeta::~shiftbeta (  )  [inline]

Definition at line 47 of file shiftlm.h.

References beta.

Member Function Documentation

int shiftbeta::discount ( ngram  ng,
int  size,
double &  fstar,
double &  lambda,
int  cv = 0 
) [virtual]

Reimplemented from mdiadaptlm.

Reimplemented in symshiftbeta.

Definition at line 221 of file shiftlm.cpp.

References beta, ngram::ckhisto(), ngramtable::dict, ngram::freq, ngram::link, dictionary::oovcode(), interplm::prunesingletons(), prunethresh, ngram::succ, ngramtable::succ1(), ngram::trans(), interplm::unigr(), and ngram::wordp().

Here is the call graph for this function:

int shiftbeta::train (  )  [virtual]

Member Data Documentation

double* shiftbeta::beta [protected]

Definition at line 41 of file shiftlm.h.

Referenced by symshiftbeta::discount(), discount(), shiftbeta(), train(), and ~shiftbeta().

int shiftbeta::prunethresh [protected]

Definition at line 40 of file shiftlm.h.

Referenced by discount(), and shiftbeta().

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

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