#include <lmmacro.h>


Public Member Functions | |
| lmmacro (std::string lmfilename, std::istream &inp, std::istream &inpMap) | |
| ~lmmacro () | |
| bool | loadmap (std::string lmfilename, std::istream &inp, std::istream &inpMap) |
| double | lprob (ngram ng) |
| double | clprob (ngram ng) |
| const char * | maxsuffptr (ngram ong, unsigned int *size=NULL) |
| const char * | cmaxsuffptr (ngram ong, unsigned int *size=NULL) |
| void | map (ngram *in, ngram *out) |
| void | One2OneMapping (ngram *in, ngram *out) |
| void | Micro2MacroMapping (ngram *in, ngram *out) |
| void | Micro2MacroMapping (ngram *in, ngram *out, char **lemma) |
| void | cutLex (ngram *in, ngram *out) |
| void | loadLexicalClasses (const char *fn) |
| dictionary * | getDict () |
Public Attributes | |
| dictionary * | dict |
| int * | microMacroMap |
| int | microMacroMapN |
| int | selectedField |
| int * | lexicaltoken2classMap |
| int | lexicaltoken2classMapN |
Definition at line 40 of file lmmacro.h.
| lmmacro::lmmacro | ( | std::string | lmfilename, | |
| std::istream & | inp, | |||
| std::istream & | inpMap | |||
| ) |
| double lmmacro::clprob | ( | ngram | ng | ) | [virtual] |
Reimplemented from lmtable.
Definition at line 236 of file lmmacro.cpp.
References ngramcache::add(), cutLex(), ngramcache::get(), lmtable::getDict(), lprob(), map(), lmtable::maxlev, lmtable::probcache, ngram::shift(), and ngram::size.

Reimplemented from lmtable.
Definition at line 363 of file lmmacro.cpp.
References ngram::dict, lmtable::getDict(), map(), and ngram::trans().

Definition at line 50 of file lmmacro.cpp.
References dictionary::decode(), ngram::dict, ngram::pushw(), ngram::shift(), and ngram::wordp().
Referenced by clprob().


| dictionary* lmmacro::getDict | ( | ) | [inline] |
Definition at line 68 of file lmmacro.h.
References dict.
Referenced by loadLexicalClasses(), map(), Micro2MacroMapping(), and One2OneMapping().

| void lmmacro::loadLexicalClasses | ( | const char * | fn | ) |
Definition at line 167 of file lmmacro.cpp.
References dictionary::decode(), dictionary::encode(), error(), lmtable::getDict(), getDict(), dictionary::incflag(), lexicaltoken2classMap, lexicaltoken2classMapN, MAX_LINE, MAX_TOKEN_N_MAP, parseWords(), and dictionary::size().

| bool lmmacro::loadmap | ( | std::string | lmfilename, | |
| std::istream & | inp, | |||
| std::istream & | inpMap | |||
| ) |
| double lmmacro::lprob | ( | ngram | ng | ) |
Definition at line 207 of file lmmacro.cpp.
References ngram::dict, lmtable::getDict(), map(), lmtable::prob(), and ngram::trans().
Referenced by clprob().


Definition at line 389 of file lmmacro.cpp.
References getDict(), Micro2MacroMapping(), NULL, One2OneMapping(), ngram::pushw(), ngram::size, ngram::trans(), and ngram::wordp().
Referenced by clprob(), cmaxsuffptr(), lprob(), and maxsuffptr().


Reimplemented from lmtable.
Definition at line 338 of file lmmacro.cpp.
References ngram::dict, lmtable::getDict(), map(), and ngram::trans().

Definition at line 554 of file lmmacro.cpp.
References dictionary::decode(), dictionary::encode(), getDict(), lmtable::getDict(), lexicaltoken2classMap, microMacroMap, ngram::pushw(), ngram::shift(), and ngram::size.

Definition at line 516 of file lmmacro.cpp.
References dictionary::decode(), lmtable::getDict(), getDict(), microMacroMap, ngram::pushw(), ngram::size, and ngram::wordp().
Referenced by map().


Definition at line 499 of file lmmacro.cpp.
References dictionary::decode(), lmtable::getDict(), getDict(), microMacroMap, dictionary::oovcode(), ngram::pushw(), ngram::size, and ngram::wordp().
Referenced by map().


Definition at line 48 of file lmmacro.h.
Referenced by loadLexicalClasses(), and Micro2MacroMapping().
1.5.9