irstlm/src/interpolate-lm.cpp File Reference

#include <iostream>
#include <fstream>
#include <sstream>
#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

lmtableload_lm (std::string file, int dub, int memmap)
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 slearn = ""
std::string seval = ""
std::string sorder = ""
std::string sscore = "no"
std::string sdebug = "0"
std::string smemmap = "0"
std::string sdub = "10000000"


Function Documentation

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

Definition at line 82 of file interpolate-lm.cpp.

References usage().

Here is the call graph for this function:

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

Definition at line 98 of file interpolate-lm.cpp.

References get_param(), sdebug, sdub, seval, slearn, smemmap, sorder, sscore, starts_with(), and usage().

Here is the call graph for this function:

lmtable * load_lm ( std::string  file,
int  dub,
int  memmap 
)

Definition at line 448 of file interpolate-lm.cpp.

References lmtable::init_probcache(), lmtable::load(), NONE, NULL, and lmtable::setlogOOVpenalty().

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 73 of file interpolate-lm.cpp.

void usage ( const char *  msg = 0  ) 

Definition at line 51 of file interpolate-lm.cpp.


Variable Documentation

std::string sdebug = "0"

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

std::string sdub = "10000000"

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

std::string seval = ""

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

std::string slearn = ""

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

Referenced by handle_option(), and main().

std::string smemmap = "0"

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

std::string sorder = ""

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

Referenced by handle_option(), and main().

std::string sscore = "no"

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


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