irstlm/src/prune-lm.cpp File Reference

#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <stdlib.h>
#include "util.h"
#include "math.h"
#include "lmtable.h"

Include dependency graph for prune-lm.cpp:


Functions

void usage (const char *msg=0)
bool starts_with (const std::string &s, const std::string &pre)
std::string get_param (const std::string &opt, int argc, const char **argv, int &argi)
void handle_option (const std::string &opt, int argc, const char **argv, int &argi)
void s2t (string cps, float *thr)
int main (int argc, const char **argv)

Variables

std::string spthr = "0"
int aflag = 0

Function Documentation

std::string get_param ( const std::string &  opt,
int  argc,
const char **  argv,
int &  argi 
)

References usage().

Here is the call graph for this function:

void handle_option ( const std::string &  opt,
int  argc,
const char **  argv,
int &  argi 
)

References aflag, get_param(), spthr, starts_with(), and usage().

Here is the call graph for this function:

int main ( int  argc,
const char **  argv 
)

References aflag, handle_option(), lmtable::load(), MAX_NGRAM, lmtable::maxlevel(), NONE, s2t(), lmtable::savetxt(), spthr, usage(), and lmtable::wdprune().

Here is the call graph for this function:

void s2t ( string  cps,
float *  thr 
)

References MAX_NGRAM.

Referenced by main().

Here is the caller graph for this function:

bool starts_with ( const std::string &  s,
const std::string &  pre 
)

void usage ( const char *  msg = 0  ) 


Variable Documentation

int aflag = 0

Referenced by handle_option(), and main().

std::string spthr = "0"

Referenced by handle_option(), and main().


Generated on Fri Jul 30 20:05:14 2010 for Moses by  doxygen 1.5.9