#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) |
Private Member Functions | |
BlamerBundle & | operator= (const BlamerBundle &other) |
void | SetBlame (IncorrectResultReason irr, const STRING &msg, const WERD_CHOICE *choice, bool debug) |
Private Attributes | |
bool | truth_has_char_boxes_ |
tesseract::BoxWord | truth_word_ |
tesseract::BoxWord | norm_truth_word_ |
int | norm_box_tolerance_ |
GenericVector< STRING > | truth_text_ |
IncorrectResultReason | incorrect_result_reason_ |
STRING | debug_ |
STRING | misadaption_debug_ |
bool | segsearch_is_looking_for_blame_ |
float | best_correctly_segmented_rating_ |
GenericVector< int > | correct_segmentation_cols_ |
GenericVector< int > | correct_segmentation_rows_ |
bool | best_choice_is_dict_and_top_choice_ |
char * | lattice_data_ |
int | lattice_size_ |
tesseract::ParamsTrainingBundle | params_training_bundle_ |
|
inline |
|
inline |
|
inline |
|
inline |
void BlamerBundle::BlameClassifier | ( | const UNICHARSET & | unicharset, |
const TBOX & | blob_box, | ||
const BLOB_CHOICE_LIST & | choices, | ||
bool | debug | ||
) |
void BlamerBundle::BlameClassifierOrLangModel | ( | const WERD_RES * | word, |
const UNICHARSET & | unicharset, | ||
bool | valid_permuter, | ||
bool | debug | ||
) |
bool BlamerBundle::ChoiceIsCorrect | ( | const WERD_CHOICE * | word_choice | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void BlamerBundle::FillDebugString | ( | const STRING & | msg, |
const WERD_CHOICE * | choice, | ||
STRING * | debug | ||
) |
void BlamerBundle::FinishSegSearch | ( | const WERD_CHOICE * | best_choice, |
bool | debug, | ||
STRING * | debug_str | ||
) |
bool BlamerBundle::GuidedSegsearchNeeded | ( | const WERD_CHOICE * | best_choice | ) | const |
bool BlamerBundle::GuidedSegsearchStillGoing | ( | ) | const |
|
inline |
|
inline |
const char * BlamerBundle::IncorrectReason | ( | ) | const |
|
static |
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 | ||
) |
void BlamerBundle::JoinBlames | ( | const BlamerBundle & | bundle1, |
const BlamerBundle & | bundle2, | ||
bool | debug | ||
) |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
void BlamerBundle::SetChopperBlame | ( | const WERD_RES * | word, |
bool | debug | ||
) |
void BlamerBundle::SetMisAdaptionDebug | ( | const WERD_CHOICE * | best_choice, |
bool | debug | ||
) |
void BlamerBundle::SetRejectedTruth | ( | ) |
void BlamerBundle::SetSymbolTruth | ( | const UNICHARSET & | unicharset, |
const char * | char_str, | ||
const TBOX & | char_box | ||
) |
void BlamerBundle::SetupCorrectSegmentation | ( | const TWERD * | word, |
bool | debug | ||
) |
void BlamerBundle::SetupNormTruthWord | ( | const DENORM & | denorm | ) |
void BlamerBundle::SetWordTruth | ( | const UNICHARSET & | unicharset, |
const char * | truth_str, | ||
const TBOX & | word_box | ||
) |
void BlamerBundle::SplitBundle | ( | int | word1_right, |
int | word2_left, | ||
bool | debug, | ||
BlamerBundle * | bundle1, | ||
BlamerBundle * | bundle2 | ||
) | const |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |