tesseract  3.04.00
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tesseract::LanguageModelState Struct Reference

#include <lm_state.h>

Public Member Functions

 LanguageModelState ()
 
 ~LanguageModelState ()
 
void Clear ()
 
void Print (const char *msg)
 

Public Attributes

ViterbiStateEntry_LIST viterbi_state_entries
 
int viterbi_state_entries_prunable_length
 
float viterbi_state_entries_prunable_max_cost
 
int viterbi_state_entries_length
 

Detailed Description

Definition at line 194 of file lm_state.h.

Constructor & Destructor Documentation

tesseract::LanguageModelState::LanguageModelState ( )
inline

Definition at line 195 of file lm_state.h.

tesseract::LanguageModelState::~LanguageModelState ( )
inline

Definition at line 199 of file lm_state.h.

199 {}

Member Function Documentation

void tesseract::LanguageModelState::Clear ( )

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.

70  {
71  tprintf("%s VSEs (max_cost=%g prn_len=%d tot_len=%d):\n",
74  ViterbiStateEntry_IT vit(&viterbi_state_entries);
75  for (vit.mark_cycle_pt(); !vit.cycled_list(); vit.forward()) {
76  vit.data()->Print("");
77  }
78 }
#define tprintf(...)
Definition: tprintf.h:31
float viterbi_state_entries_prunable_max_cost
Definition: lm_state.h:210
ViterbiStateEntry_LIST viterbi_state_entries
Definition: lm_state.h:207

Member Data Documentation

ViterbiStateEntry_LIST tesseract::LanguageModelState::viterbi_state_entries

Definition at line 207 of file lm_state.h.

int tesseract::LanguageModelState::viterbi_state_entries_length

Definition at line 212 of file lm_state.h.

int tesseract::LanguageModelState::viterbi_state_entries_prunable_length

Definition at line 209 of file lm_state.h.

float tesseract::LanguageModelState::viterbi_state_entries_prunable_max_cost

Definition at line 210 of file lm_state.h.


The documentation for this struct was generated from the following files: