tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::LanguageModelState Struct Reference

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. More...
 
void Print (const char *msg)
 

Public Attributes

ViterbiStateEntry_LIST viterbi_state_entries
 Storage for the Viterbi state. More...
 
int viterbi_state_entries_prunable_length
 Number and max cost of prunable paths in viterbi_state_entries. More...
 
float viterbi_state_entries_prunable_max_cost
 
int viterbi_state_entries_length
 Total number of entries in viterbi_state_entries. More...
 

Detailed Description

Struct to store information maintained by various language model components.

Constructor & Destructor Documentation

◆ LanguageModelState()

tesseract::LanguageModelState::LanguageModelState ( )
inline

◆ ~LanguageModelState()

tesseract::LanguageModelState::~LanguageModelState ( )
inline

Member Function Documentation

◆ Clear()

void tesseract::LanguageModelState::Clear ( )

Clears the viterbi search state back to its initial conditions.

◆ Print()

void tesseract::LanguageModelState::Print ( const char *  msg)

Member Data Documentation

◆ viterbi_state_entries

ViterbiStateEntry_LIST tesseract::LanguageModelState::viterbi_state_entries

Storage for the Viterbi state.

◆ viterbi_state_entries_length

int tesseract::LanguageModelState::viterbi_state_entries_length

Total number of entries in viterbi_state_entries.

◆ viterbi_state_entries_prunable_length

int tesseract::LanguageModelState::viterbi_state_entries_prunable_length

Number and max cost of prunable paths in viterbi_state_entries.

◆ viterbi_state_entries_prunable_max_cost

float tesseract::LanguageModelState::viterbi_state_entries_prunable_max_cost

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