irstlm/src/compile-lm.cpp File Reference

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

Go to the source code of this file.

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)
int main (int argc, const char **argv)

Variables

std::string sinvert = "no"
std::string stxt = "no"
std::string sscore = "no"
std::string seval = ""
std::string srandcalls = "0"
std::string sfilter = ""
std::string sdebug = "0"
std::string smemmap = "0"
std::string sdub = "10000000"
std::string skeepunigrams = "yes"
std::string tmpdir = ""


Function Documentation

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

Definition at line 81 of file compile-lm.cpp.

References usage().

Referenced by handle_option().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 97 of file compile-lm.cpp.

References get_param(), sdebug, sdub, seval, sfilter, sinvert, skeepunigrams, smemmap, srandcalls, sscore, starts_with(), stxt, tmpdir, and usage().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 72 of file compile-lm.cpp.

Referenced by handle_option().

Here is the caller graph for this function:

void usage ( const char *  msg = 0  ) 

Definition at line 49 of file compile-lm.cpp.

Referenced by get_param(), handle_option(), and main().

Here is the caller graph for this function:


Variable Documentation

std::string sdebug = "0"

Definition at line 42 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string sdub = "10000000"

Definition at line 44 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string seval = ""

Definition at line 39 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string sfilter = ""

Definition at line 41 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string sinvert = "no"

Definition at line 36 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string skeepunigrams = "yes"

Definition at line 45 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string smemmap = "0"

Definition at line 43 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string srandcalls = "0"

Definition at line 40 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string sscore = "no"

Definition at line 38 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string stxt = "no"

Definition at line 37 of file compile-lm.cpp.

Referenced by handle_option(), and main().

std::string tmpdir = ""

Definition at line 46 of file compile-lm.cpp.

Referenced by handle_option(), and main().


Generated on Fri Apr 15 13:04:15 2011 for Moses by  doxygen 1.5.9