tesseract
4.0.0-1-g2a2b
|
#include <blamer.h>
Public Member Functions | |
BlamerBundle () | |
BlamerBundle (const BlamerBundle &other) | |
~BlamerBundle () | |
STRING | TruthString () const |
IncorrectResultReason | incorrect_result_reason () const |
bool | NoTruth () const |
bool | HasDebugInfo () const |
const STRING & | debug () const |
const STRING & | misadaption_debug () const |
void | UpdateBestRating (float rating) |
int | correct_segmentation_length () const |
bool | MatrixPositionCorrect (int index, const MATRIX_COORD &coord) |
void | set_best_choice_is_dict_and_top_choice (bool value) |
const char * | lattice_data () const |
int | lattice_size () const |
void | set_lattice_data (const char *data, int size) |
const tesseract::ParamsTrainingBundle & | params_training_bundle () const |
void | AddHypothesis (const tesseract::ParamsTrainingHypothesis &hypo) |
void | SetWordTruth (const UNICHARSET &unicharset, const char *truth_str, const TBOX &word_box) |
void | SetSymbolTruth (const UNICHARSET &unicharset, const char *char_str, const TBOX &char_box) |
void | SetRejectedTruth () |
bool | ChoiceIsCorrect (const WERD_CHOICE *word_choice) const |
void | ClearResults () |
void | CopyTruth (const BlamerBundle &other) |
void | CopyResults (const BlamerBundle &other) |
const char * | IncorrectReason () const |
void | FillDebugString (const STRING &msg, const WERD_CHOICE *choice, STRING *debug) |
void | SetupNormTruthWord (const DENORM &denorm) |
void | SplitBundle (int word1_right, int word2_left, bool debug, BlamerBundle *bundle1, BlamerBundle *bundle2) const |
void | JoinBlames (const BlamerBundle &bundle1, const BlamerBundle &bundle2, bool debug) |
void | BlameClassifier (const UNICHARSET &unicharset, const TBOX &blob_box, const BLOB_CHOICE_LIST &choices, bool debug) |
void | SetChopperBlame (const WERD_RES *word, bool debug) |
void | BlameClassifierOrLangModel (const WERD_RES *word, const UNICHARSET &unicharset, bool valid_permuter, bool debug) |
void | SetupCorrectSegmentation (const TWERD *word, bool debug) |
bool | GuidedSegsearchNeeded (const WERD_CHOICE *best_choice) const |
void | InitForSegSearch (const WERD_CHOICE *best_choice, MATRIX *ratings, UNICHAR_ID wildcard_id, bool debug, STRING *debug_str, TessResultCallback2< bool, int, int > *pp_cb) |
bool | GuidedSegsearchStillGoing () const |
void | FinishSegSearch (const WERD_CHOICE *best_choice, bool debug, STRING *debug_str) |
void | SetMisAdaptionDebug (const WERD_CHOICE *best_choice, bool debug) |
Static Public Member Functions | |
static const char * | IncorrectReasonName (IncorrectResultReason irr) |
static void | LastChanceBlame (bool debug, WERD_RES *word) |
|
inline |
Definition at line 102 of file blamer.h.
|
inline |
|
inline |
|
inline |
Definition at line 166 of file blamer.h.
void BlamerBundle::BlameClassifier | ( | const UNICHARSET & | unicharset, |
const TBOX & | blob_box, | ||
const BLOB_CHOICE_LIST & | choices, | ||
bool | debug | ||
) |
Definition at line 262 of file blamer.cpp.
void BlamerBundle::BlameClassifierOrLangModel | ( | const WERD_RES * | word, |
const UNICHARSET & | unicharset, | ||
bool | valid_permuter, | ||
bool | debug | ||
) |
Definition at line 374 of file blamer.cpp.
bool BlamerBundle::ChoiceIsCorrect | ( | const WERD_CHOICE * | word_choice | ) | const |
Definition at line 116 of file blamer.cpp.
|
inline |
Definition at line 185 of file blamer.h.
|
inline |
|
inline |
Definition at line 199 of file blamer.h.
|
inline |
|
inline |
void BlamerBundle::FillDebugString | ( | const STRING & | msg, |
const WERD_CHOICE * | choice, | ||
STRING * | debug | ||
) |
Definition at line 128 of file blamer.cpp.
void BlamerBundle::FinishSegSearch | ( | const WERD_CHOICE * | best_choice, |
bool | debug, | ||
STRING * | debug_str | ||
) |
Definition at line 511 of file blamer.cpp.
bool BlamerBundle::GuidedSegsearchNeeded | ( | const WERD_CHOICE * | best_choice | ) | const |
Definition at line 466 of file blamer.cpp.
bool BlamerBundle::GuidedSegsearchStillGoing | ( | ) | const |
Definition at line 506 of file blamer.cpp.
|
inline |
const char * BlamerBundle::IncorrectReason | ( | ) | const |
Definition at line 65 of file blamer.cpp.
|
static |
Definition at line 61 of file blamer.cpp.
void BlamerBundle::InitForSegSearch | ( | const WERD_CHOICE * | best_choice, |
MATRIX * | ratings, | ||
UNICHAR_ID | wildcard_id, | ||
bool | debug, | ||
STRING * | debug_str, | ||
TessResultCallback2< bool, int, int > * | pp_cb | ||
) |
Definition at line 478 of file blamer.cpp.
void BlamerBundle::JoinBlames | ( | const BlamerBundle & | bundle1, |
const BlamerBundle & | bundle2, | ||
bool | debug | ||
) |
Definition at line 230 of file blamer.cpp.
|
static |
Definition at line 552 of file blamer.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 121 of file blamer.h.
|
inline |
|
inline |
|
inline |
void BlamerBundle::SetChopperBlame | ( | const WERD_RES * | word, |
bool | debug | ||
) |
Definition at line 315 of file blamer.cpp.
void BlamerBundle::SetMisAdaptionDebug | ( | const WERD_CHOICE * | best_choice, |
bool | debug | ||
) |
Definition at line 579 of file blamer.cpp.
void BlamerBundle::SetRejectedTruth | ( | ) |
Definition at line 110 of file blamer.cpp.
void BlamerBundle::SetSymbolTruth | ( | const UNICHARSET & | unicharset, |
const char * | char_str, | ||
const TBOX & | char_box | ||
) |
Definition at line 91 of file blamer.cpp.
void BlamerBundle::SetupCorrectSegmentation | ( | const TWERD * | word, |
bool | debug | ||
) |
Definition at line 412 of file blamer.cpp.
void BlamerBundle::SetupNormTruthWord | ( | const DENORM & | denorm | ) |
Definition at line 150 of file blamer.cpp.
void BlamerBundle::SetWordTruth | ( | const UNICHARSET & | unicharset, |
const char * | truth_str, | ||
const TBOX & | word_box | ||
) |
Definition at line 71 of file blamer.cpp.
void BlamerBundle::SplitBundle | ( | int | word1_right, |
int | word2_left, | ||
bool | debug, | ||
BlamerBundle * | bundle1, | ||
BlamerBundle * | bundle2 | ||
) | const |
Definition at line 174 of file blamer.cpp.
|
inline |
Definition at line 112 of file blamer.h.
|
inline |