tesseract v5.3.3.20231005
|
#include <blamer.h>
Public Member Functions | |
BlamerBundle () | |
BlamerBundle (const BlamerBundle &other) | |
~BlamerBundle () | |
std::string | TruthString () const |
IncorrectResultReason | incorrect_result_reason () const |
bool | NoTruth () const |
bool | HasDebugInfo () const |
const std::string & | debug () const |
const std::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 std::string &msg, const WERD_CHOICE *choice, std::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, std::string &debug_str, tesseract::LMPainPoints *pain_points, double max_char_wh_ratio, WERD_RES *word_res) |
bool | GuidedSegsearchStillGoing () const |
void | FinishSegSearch (const WERD_CHOICE *best_choice, bool debug, std::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 109 of file blamer.h.
|
inline |
Definition at line 115 of file blamer.h.
|
inline |
|
inline |
Definition at line 180 of file blamer.h.
void tesseract::BlamerBundle::BlameClassifier | ( | const UNICHARSET & | unicharset, |
const TBOX & | blob_box, | ||
const BLOB_CHOICE_LIST & | choices, | ||
bool | debug | ||
) |
Definition at line 260 of file blamer.cpp.
void tesseract::BlamerBundle::BlameClassifierOrLangModel | ( | const WERD_RES * | word, |
const UNICHARSET & | unicharset, | ||
bool | valid_permuter, | ||
bool | debug | ||
) |
Definition at line 363 of file blamer.cpp.
bool tesseract::BlamerBundle::ChoiceIsCorrect | ( | const WERD_CHOICE * | word_choice | ) | const |
Definition at line 116 of file blamer.cpp.
|
inline |
Definition at line 198 of file blamer.h.
|
inline |
Definition at line 220 of file blamer.h.
|
inline |
Definition at line 214 of file blamer.h.
|
inline |
|
inline |
void tesseract::BlamerBundle::FillDebugString | ( | const std::string & | msg, |
const WERD_CHOICE * | choice, | ||
std::string & | debug | ||
) |
Definition at line 129 of file blamer.cpp.
void tesseract::BlamerBundle::FinishSegSearch | ( | const WERD_CHOICE * | best_choice, |
bool | debug, | ||
std::string & | debug_str | ||
) |
Definition at line 503 of file blamer.cpp.
bool tesseract::BlamerBundle::GuidedSegsearchNeeded | ( | const WERD_CHOICE * | best_choice | ) | const |
Definition at line 461 of file blamer.cpp.
bool tesseract::BlamerBundle::GuidedSegsearchStillGoing | ( | ) | const |
Definition at line 498 of file blamer.cpp.
|
inline |
|
inline |
const char * tesseract::BlamerBundle::IncorrectReason | ( | ) | const |
Definition at line 60 of file blamer.cpp.
|
static |
Definition at line 56 of file blamer.cpp.
void tesseract::BlamerBundle::InitForSegSearch | ( | const WERD_CHOICE * | best_choice, |
MATRIX * | ratings, | ||
UNICHAR_ID | wildcard_id, | ||
bool | debug, | ||
std::string & | debug_str, | ||
tesseract::LMPainPoints * | pain_points, | ||
double | max_char_wh_ratio, | ||
WERD_RES * | word_res | ||
) |
Definition at line 468 of file blamer.cpp.
void tesseract::BlamerBundle::JoinBlames | ( | const BlamerBundle & | bundle1, |
const BlamerBundle & | bundle2, | ||
bool | debug | ||
) |
Definition at line 226 of file blamer.cpp.
|
static |
Definition at line 540 of file blamer.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void tesseract::BlamerBundle::SetChopperBlame | ( | const WERD_RES * | word, |
bool | debug | ||
) |
Definition at line 309 of file blamer.cpp.
void tesseract::BlamerBundle::SetMisAdaptionDebug | ( | const WERD_CHOICE * | best_choice, |
bool | debug | ||
) |
Definition at line 564 of file blamer.cpp.
void tesseract::BlamerBundle::SetRejectedTruth | ( | ) |
Definition at line 110 of file blamer.cpp.
void tesseract::BlamerBundle::SetSymbolTruth | ( | const UNICHARSET & | unicharset, |
const char * | char_str, | ||
const TBOX & | char_box | ||
) |
Definition at line 88 of file blamer.cpp.
void tesseract::BlamerBundle::SetupCorrectSegmentation | ( | const TWERD * | word, |
bool | debug | ||
) |
Definition at line 399 of file blamer.cpp.
void tesseract::BlamerBundle::SetupNormTruthWord | ( | const DENORM & | denorm | ) |
Definition at line 151 of file blamer.cpp.
void tesseract::BlamerBundle::SetWordTruth | ( | const UNICHARSET & | unicharset, |
const char * | truth_str, | ||
const TBOX & | word_box | ||
) |
Definition at line 66 of file blamer.cpp.
void tesseract::BlamerBundle::SplitBundle | ( | int | word1_right, |
int | word2_left, | ||
bool | debug, | ||
BlamerBundle * | bundle1, | ||
BlamerBundle * | bundle2 | ||
) | const |
Definition at line 174 of file blamer.cpp.
|
inline |
|
inline |