|
tesseract 3.04.01
|
Struct to store information maintained by various language model components. More...
#include <lm_state.h>
Public Member Functions | |
| LanguageModelState () | |
| ~LanguageModelState () | |
| void | Clear () |
| Clears the viterbi search state back to its initial conditions. | |
| void | Print (const char *msg) |
Public Attributes | |
| ViterbiStateEntry_LIST | viterbi_state_entries |
| Storage for the Viterbi state. | |
| int | viterbi_state_entries_prunable_length |
| Number and max cost of prunable paths in viterbi_state_entries. | |
| float | viterbi_state_entries_prunable_max_cost |
| int | viterbi_state_entries_length |
| Total number of entries in viterbi_state_entries. | |
Struct to store information maintained by various language model components.
Definition at line 197 of file lm_state.h.
| tesseract::LanguageModelState::LanguageModelState | ( | ) | [inline] |
Definition at line 198 of file lm_state.h.
| tesseract::LanguageModelState::~LanguageModelState | ( | ) | [inline] |
Definition at line 202 of file lm_state.h.
{}
| void tesseract::LanguageModelState::Clear | ( | ) |
Clears the viterbi search state back to its initial conditions.
Definition at line 63 of file lm_state.cpp.
| void tesseract::LanguageModelState::Print | ( | const char * | msg | ) |
Definition at line 70 of file lm_state.cpp.
{
tprintf("%s VSEs (max_cost=%g prn_len=%d tot_len=%d):\n",
msg, viterbi_state_entries_prunable_max_cost,
viterbi_state_entries_prunable_length, viterbi_state_entries_length);
ViterbiStateEntry_IT vit(&viterbi_state_entries);
for (vit.mark_cycle_pt(); !vit.cycled_list(); vit.forward()) {
vit.data()->Print("");
}
}
| ViterbiStateEntry_LIST tesseract::LanguageModelState::viterbi_state_entries |
Storage for the Viterbi state.
Definition at line 210 of file lm_state.h.
Total number of entries in viterbi_state_entries.
Definition at line 215 of file lm_state.h.
Number and max cost of prunable paths in viterbi_state_entries.
Definition at line 212 of file lm_state.h.
Definition at line 213 of file lm_state.h.