#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 = "" |
| 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().


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


| int main | ( | int | argc, | |
| const char ** | argv | |||
| ) |
Definition at line 140 of file compile-lm.cpp.
References BINARY, dictionary::BoS(), lmtable::check_cache_levels(), lmtable::cpsublm(), dictionary::decode(), ngram::dict, lmtable::dict, dictionary::encode(), dictionary::EoS(), dictionary::freq(), lmtable::getlogOOVpenalty(), handle_option(), dictionary::incflag(), lmtable::init_probcache(), lmtable::is_inverted(), lmtable::load(), lmtable::lprob(), lmtable::maxlevel(), NONE, dictionary::oovcode(), Moses::PrintUserTime(), ngram::pushc(), Moses::ResetUserTime(), lmtable::savebin(), lmtable::savetxt(), sdebug, sdub, lmtable::setlogOOVpenalty(), lmtable::setlogOOVpenalty2(), seval, sfilter, sinvert, ngram::size, dictionary::size(), skeepunigrams, smemmap, srandcalls, sscore, lmtable::stat(), stxt, TEXT, tmpdir, dictionary::totfreq(), usage(), and ngram::wordp().

| bool starts_with | ( | const std::string & | s, | |
| const std::string & | pre | |||
| ) |
Definition at line 72 of file compile-lm.cpp.
Referenced by handle_option().

| void usage | ( | const char * | msg = 0 |
) |
Definition at line 49 of file compile-lm.cpp.
Referenced by get_param(), handle_option(), and main().

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