/disk4/html/www/moses/doxygen/irstlm/trunk/src/dtsel.cpp File Reference

#include <cmath>
#include "util.h"
#include <sstream>
#include "mfstream.h"
#include "mempool.h"
#include "htable.h"
#include "dictionary.h"
#include "n_gram.h"
#include "ngramtable.h"
#include "cmd.h"

Go to the source code of this file.

Defines

#define YES   1
#define NO   0

Functions

void print_help (int TypeFlag=0)
void usage (const char *msg=0)
double prob (ngramtable *ngt, ngram ng, int size, int cv)
double computePP (ngramtable *train, ngramtable *test, double oovpenalty, double &oovrate, int cv=0)
int main (int argc, char **argv)


Define Documentation

#define NO   0

Definition at line 43 of file dtsel.cpp.

Referenced by main().

#define YES   1

Definition at line 42 of file dtsel.cpp.

Referenced by main().


Function Documentation

double computePP ( ngramtable train,
ngramtable test,
double  oovpenalty,
double &  oovrate,
int  cv = 0 
)

Definition at line 104 of file dtsel.cpp.

References CONT, ngramtable::dict, INIT, ngramtable::maxlevel(), dictionary::oovcode(), prob(), ngramtable::scan(), ngram::size, ngram::trans(), and ngram::wordp().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

void print_help ( int  TypeFlag = 0  ) 

Definition at line 45 of file dtsel.cpp.

References FullPrintParams().

Here is the call graph for this function:

double prob ( ngramtable ngt,
ngram  ng,
int  size,
int  cv 
)

void usage ( const char *  msg = 0  ) 

Definition at line 53 of file dtsel.cpp.

References print_help().

Here is the call graph for this function:


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