tesseract
3.05.02
|
#include <tess_lang_model.h>
Public Member Functions | |
TessLangModel (const string &lm_params, const string &data_file_path, bool load_system_dawg, TessdataManager *tessdata_manager, CubeRecoContext *cntxt) | |
~TessLangModel () | |
TessLangModEdge * | Root () |
LangModEdge ** | GetEdges (CharAltList *alt_list, LangModEdge *edge, int *edge_cnt) |
bool | IsValidSequence (const char_32 *sequence, bool eow_flag, LangModEdge **final_edge=NULL) |
bool | IsLeadingPunc (char_32 ch) |
bool | IsTrailingPunc (char_32 ch) |
bool | IsDigit (char_32 ch) |
void | RemoveInvalidCharacters (string *lm_str) |
Public Member Functions inherited from tesseract::LangModel | |
LangModel () | |
virtual | ~LangModel () |
bool | OOD () |
bool | Numeric () |
bool | WordList () |
bool | Punc () |
void | SetOOD (bool ood) |
void | SetNumeric (bool numeric) |
void | SetWordList (bool word_list) |
void | SetPunc (bool punc_enabled) |
Additional Inherited Members | |
Protected Attributes inherited from tesseract::LangModel | |
bool | ood_enabled_ |
bool | numeric_enabled_ |
bool | word_list_enabled_ |
bool | punc_enabled_ |
Definition at line 38 of file tess_lang_model.h.
tesseract::TessLangModel::TessLangModel | ( | const string & | lm_params, |
const string & | data_file_path, | ||
bool | load_system_dawg, | ||
TessdataManager * | tessdata_manager, | ||
CubeRecoContext * | cntxt | ||
) |
Definition at line 60 of file tess_lang_model.cpp.
|
inline |
Definition at line 45 of file tess_lang_model.h.
|
virtual |
Implements tesseract::LangModel.
Definition at line 169 of file tess_lang_model.cpp.
|
virtual |
Implements tesseract::LangModel.
Definition at line 162 of file tess_lang_model.cpp.
|
virtual |
Implements tesseract::LangModel.
Definition at line 154 of file tess_lang_model.cpp.
|
virtual |
Implements tesseract::LangModel.
Definition at line 158 of file tess_lang_model.cpp.
|
virtual |
Implements tesseract::LangModel.
Definition at line 145 of file tess_lang_model.cpp.
void tesseract::TessLangModel::RemoveInvalidCharacters | ( | string * | lm_str | ) |
Definition at line 467 of file tess_lang_model.cpp.
|
inlinevirtual |
Implements tesseract::LangModel.
Definition at line 53 of file tess_lang_model.h.