mixture Class Reference

#include <mixture.h>

Inheritance diagram for mixture:

Inheritance graph
[legend]
Collaboration diagram for mixture:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 mixture (bool fulltable, char *sublminfo, int depth, int prunefreq=0, char *ipfile=NULL, char *opfile=NULL)
int train ()
int savepar (char *opf)
int loadpar (char *opf)
int dub ()
int dub (int value)
void settying (int a, int b)
int discount (ngram ng, int size, double &fstar, double &lambda, int cv=0)
 ~mixture ()
int get (ngram &ng, int n, int lev)

Public Attributes

bool usefulltable


Detailed Description

Definition at line 28 of file mixture.h.


Constructor & Destructor Documentation

mixture::mixture ( bool  fulltable,
char *  sublminfo,
int  depth,
int  prunefreq = 0,
char *  ipfile = NULL,
char *  opfile = NULL 
)

mixture::~mixture (  )  [inline]

Definition at line 74 of file mixture.h.

References interplm::lmsize().

Here is the call graph for this function:


Member Function Documentation

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

int mixture::dub ( int  value  )  [inline, virtual]

Reimplemented from interplm.

Definition at line 59 of file mixture.h.

References ngramtable::dict, dictionary::dub(), and interplm::dub().

Here is the call graph for this function:

int mixture::dub (  )  [inline, virtual]

Reimplemented from interplm.

Definition at line 55 of file mixture.h.

References ngramtable::dict, and dictionary::dub().

Referenced by train().

Here is the call graph for this function:

Here is the caller graph for this function:

int mixture::get ( ngram ng,
int  n,
int  lev 
) [virtual]

int mixture::loadpar ( char *  opf  ) 

Definition at line 274 of file mixture.cpp.

References interplm::lmsize(), and mfstream::readx().

Referenced by train().

Here is the call graph for this function:

Here is the caller graph for this function:

int mixture::savepar ( char *  opf  ) 

Definition at line 258 of file mixture.cpp.

References interplm::lmsize(), and mfstream::writex().

Referenced by train().

Here is the call graph for this function:

Here is the caller graph for this function:

void mixture::settying ( int  a,
int  b 
) [inline]

Definition at line 66 of file mixture.h.

int mixture::train (  )  [virtual]


Member Data Documentation

Definition at line 46 of file mixture.h.

Referenced by get(), and mixture().


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

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