#include <iostream>#include <fstream>#include <sstream>#include <stdexcept>#include <vector>#include <string>#include <stdlib.h>#include "cmd.h"#include "util.h"#include "math.h"#include "lmContainer.h"Go to the source code of this file.
Functions | |
| void | error (const char *message) |
| lmContainer * | load_lm (std::string file, int requiredMaxlev, int dub, int memmap, float nlf, float dlf) |
| void | print_help (int TypeFlag=0) |
| void | usage (const char *msg=0) |
| int | main (int argc, char **argv) |
| void error | ( | const char * | message | ) | [inline] |
Definition at line 37 of file interpolate-lm.cpp.
Referenced by lmtable::get(), lmmacro::load(), lmInterpolation::load(), lmclass::load(), main(), xpath_parser::parse(), and lmtable::search().

| lmContainer * load_lm | ( | std::string | file, | |
| int | requiredMaxlev, | |||
| int | dub, | |||
| int | memmap, | |||
| float | nlf, | |||
| float | dlf | |||
| ) |
Definition at line 549 of file interpolate-lm.cpp.
References lmContainer::CreateLanguageModel(), lmContainer::init_caches(), lmContainer::load(), lmContainer::maxlevel(), NULL, lmContainer::setlogOOVpenalty(), and lmContainer::setMaxLoadedLevel().
Referenced by main().


| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 74 of file interpolate-lm.cpp.
References dictionary::BoS(), lmContainer::clprob(), CMDBOOLTYPE, CMDFLOATTYPE, CMDINTTYPE, CMDMSG, CMDSTRINGTYPE, debug, DeclareParams(), dictionary::decode(), ngram::dict, dictionary::encode(), dictionary::EoS(), error(), lmContainer::getDict(), GetParams(), dictionary::incflag(), load_lm(), MAX_NGRAM, lmContainer::maxlevel(), n, NULL, dictionary::oovcode(), parseWords(), ngram::size, ngram::trans(), usage(), and ngram::wordp().

| void print_help | ( | int | TypeFlag = 0 |
) |
Definition at line 45 of file interpolate-lm.cpp.
References FullPrintParams().

| void usage | ( | const char * | msg = 0 |
) |
Definition at line 63 of file interpolate-lm.cpp.
References print_help().

1.5.9