shiftone Class Reference

#include <shiftlm.h>

Inheritance diagram for shiftone:

Inheritance graph
[legend]
Collaboration diagram for shiftone:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Protected Attributes

int prunethresh
double beta


Detailed Description

Definition at line 24 of file shiftlm.h.


Constructor & Destructor Documentation

shiftone::shiftone ( char *  ngtfile,
int  depth = 0,
int  prunefreq = 0,
TABLETYPE  tt = SHIFTBETA_B 
)

Definition at line 42 of file shiftlm.cpp.

References beta, and prunethresh.

shiftone::~shiftone (  )  [inline]

Definition at line 33 of file shiftlm.h.


Member Function Documentation

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

Reimplemented from mdiadaptlm.

Definition at line 61 of file shiftlm.cpp.

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

Here is the call graph for this function:

int shiftone::train (  )  [virtual]

Reimplemented from interplm.

Definition at line 54 of file shiftlm.cpp.

References interplm::trainunigr().

Here is the call graph for this function:


Member Data Documentation

double shiftone::beta [protected]

Definition at line 28 of file shiftlm.h.

Referenced by discount(), and shiftone().

int shiftone::prunethresh [protected]

Definition at line 27 of file shiftlm.h.

Referenced by discount(), and shiftone().


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