#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 | |
| lmtable * | load_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" |
| 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().

| 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().

| 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().


| int main | ( | int | argc, | |
| const char ** | argv | |||
| ) |
Definition at line 131 of file interpolate-lm.cpp.
References lmtable::dict, handle_option(), dictionary::incflag(), load_lm(), MAX_NGRAM, lmtable::maxsuffptr(), NULL, dictionary::oovcode(), sdebug, sdub, seval, ngram::size, slearn, smemmap, sorder, sscore, ngram::trans(), usage(), and ngram::wordp().

| 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.
| 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 = "" |
| std::string smemmap = "0" |
Definition at line 43 of file interpolate-lm.cpp.
| std::string sorder = "" |
| std::string sscore = "no" |
Definition at line 41 of file interpolate-lm.cpp.
1.5.9