mshiftbeta Class Reference

#include <shiftlm.h>

Inheritance diagram for mshiftbeta:

Inheritance graph
Collaboration diagram for mshiftbeta:

Collaboration graph

List of all members.

Public Member Functions

 mshiftbeta (char *ngtfile, int depth=0, int prunefreq=0, TABLETYPE tt=MSHIFTBETA_B)
int train ()
int discount (ngram ng, int size, double &fstar, double &lambda, int cv=0)
 ~mshiftbeta ()
int mfreq (ngram &ng, int l)

Protected Attributes

int prunethresh
double beta [3][MAX_NGRAM]
ngramtabletb [MAX_NGRAM]
double oovsum

Detailed Description

Definition at line 63 of file shiftlm.h.

Constructor & Destructor Documentation

mshiftbeta::mshiftbeta ( char *  ngtfile,
int  depth = 0,
int  prunefreq = 0,

Definition at line 302 of file shiftlm.cpp.

References beta, and prunethresh.

mshiftbeta::~mshiftbeta (  )  [inline]

Definition at line 77 of file shiftlm.h.

Member Function Documentation

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

int mshiftbeta::mfreq ( ngram ng,
int  l 
) [inline]

Definition at line 79 of file shiftlm.h.

References ngram::freq, ngramtable::getfreq(), ngram::link, interplm::lmsize(), and ngram::pinfo.

Referenced by discount(), and train().

Here is the call graph for this function:

Here is the caller graph for this function:

int mshiftbeta::train (  )  [virtual]

Member Data Documentation

double mshiftbeta::beta[3][MAX_NGRAM] [protected]

Definition at line 67 of file shiftlm.h.

Referenced by discount(), mshiftbeta(), and train().

double mshiftbeta::oovsum [protected]

Definition at line 70 of file shiftlm.h.

Referenced by train().

int mshiftbeta::prunethresh [protected]

Definition at line 66 of file shiftlm.h.

Referenced by discount(), and mshiftbeta().

ngramtable* mshiftbeta::tb[MAX_NGRAM] [protected]

Definition at line 68 of file shiftlm.h.

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

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