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

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 |
| 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 | |||
| ) |
References aflag, get_param(), spthr, starts_with(), and usage().

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

| void s2t | ( | string | cps, | |
| float * | thr | |||
| ) |
| bool starts_with | ( | const std::string & | s, | |
| const std::string & | pre | |||
| ) |
| void usage | ( | const char * | msg = 0 |
) |
| int aflag = 0 |
Referenced by handle_option(), and main().
| std::string spthr = "0" |
Referenced by handle_option(), and main().
1.5.9