tesseract
3.05.02
|
#include <word_altlist.h>
Public Member Functions | |
WordAltList (int max_alt) | |
~WordAltList () | |
void | Sort () |
bool | Insert (char_32 *char_ptr, int cost, void *tag=NULL) |
char_32 * | Alt (int alt_idx) |
void | PrintDebug () |
Public Member Functions inherited from tesseract::AltList | |
AltList (int max_alt) | |
virtual | ~AltList () |
int | BestCost (int *best_alt) const |
int | AltCount () const |
int | AltCost (int alt_idx) const |
double | AltProb (int alt_idx) const |
void * | AltTag (int alt_idx) const |
Additional Inherited Members | |
Protected Attributes inherited from tesseract::AltList | |
int | max_alt_ |
int | alt_cnt_ |
int * | alt_cost_ |
void ** | alt_tag_ |
Definition at line 32 of file word_altlist.h.
|
explicit |
Definition at line 23 of file word_altlist.cpp.
tesseract::WordAltList::~WordAltList | ( | ) |
Definition at line 28 of file word_altlist.cpp.
|
inline |
Definition at line 41 of file word_altlist.h.
bool tesseract::WordAltList::Insert | ( | char_32 * | word_str, |
int | cost, | ||
void * | tag = NULL |
||
) |
insert an alternate word with the specified cost and tag
Definition at line 43 of file word_altlist.cpp.
void tesseract::WordAltList::PrintDebug | ( | ) |
Definition at line 104 of file word_altlist.cpp.
|
virtual |
sort the alternate in descending order based on the cost
Implements tesseract::AltList.
Definition at line 84 of file word_altlist.cpp.