#include <word_list_lang_model.h>
Public Member Functions | |
WordListLangModel (CubeRecoContext *cntxt) | |
~WordListLangModel () | |
LangModEdge * | Root () |
LangModEdge ** | GetEdges (CharAltList *alt_list, LangModEdge *edge, int *edge_cnt) |
bool | IsValidSequence (const char_32 *sequence, bool eow_flag, LangModEdge **edges) |
bool | IsLeadingPunc (char_32 ch) |
bool | IsTrailingPunc (char_32 ch) |
bool | IsDigit (char_32 ch) |
bool | AddString (const char *char_ptr) |
bool | AddString32 (const char_32 *char_32_ptr) |
Static Public Member Functions | |
static void | WordVariants (const CharSet &char_set, const UNICHARSET *uchset, string_32 str32, vector< WERD_CHOICE * > *word_variants) |
tesseract::WordListLangModel::WordListLangModel | ( | CubeRecoContext * | cntxt | ) | [explicit] |
tesseract::WordListLangModel::~WordListLangModel | ( | ) |
bool tesseract::WordListLangModel::AddString | ( | const char * | char_ptr | ) |
bool tesseract::WordListLangModel::AddString32 | ( | const char_32 * | char_32_ptr | ) |
LangModEdge ** tesseract::WordListLangModel::GetEdges | ( | CharAltList * | alt_list, | |
LangModEdge * | edge, | |||
int * | edge_cnt | |||
) | [virtual] |
Implements tesseract::LangModel.
bool tesseract::WordListLangModel::IsDigit | ( | char_32 | ch | ) | [inline, virtual] |
Implements tesseract::LangModel.
bool tesseract::WordListLangModel::IsLeadingPunc | ( | char_32 | ch | ) | [inline, virtual] |
Implements tesseract::LangModel.
bool tesseract::WordListLangModel::IsTrailingPunc | ( | char_32 | ch | ) | [inline, virtual] |
Implements tesseract::LangModel.
bool tesseract::WordListLangModel::IsValidSequence | ( | const char_32 * | sequence, | |
bool | eow_flag, | |||
LangModEdge ** | edges | |||
) | [virtual] |
Implements tesseract::LangModel.
LangModEdge * tesseract::WordListLangModel::Root | ( | ) | [virtual] |
Implements tesseract::LangModel.
void tesseract::WordListLangModel::WordVariants | ( | const CharSet & | char_set, | |
const UNICHARSET * | uchset, | |||
string_32 | str32, | |||
vector< WERD_CHOICE * > * | word_variants | |||
) | [static] |