44 #include "config_auto.h"
63 const char *
string,
C_COL color,
66 BLOB_CHOICE_LIST *choices =
NULL;
67 #ifndef GRAPHICS_DISABLED
72 if (choices ==
NULL) {
88 BLOB_CHOICE_IT choices_it(choices);
90 bool incorrect_adapted =
false;
91 UNICHAR_ID incorrect_adapted_id = INVALID_UNICHAR_ID;
92 const char *truth_str = blamer_bundle->
truth_text[b].string();
93 for (choices_it.mark_cycle_pt(); !choices_it.cycled_list();
94 choices_it.forward()) {
95 if (strcmp(truth_str,
getDict().getUnicharset().get_normed_unichar(
96 choices_it.data()->unichar_id())) == 0) {
99 }
else if (choices_it.data()->adapted()) {
100 incorrect_adapted =
true;
101 incorrect_adapted_id = choices_it.data()->unichar_id();
105 STRING debug =
"unichar ";
107 debug +=
" not found in classification list";
110 }
else if (incorrect_adapted) {
111 STRING debug =
"better rating for adapted ";
113 incorrect_adapted_id);
114 debug +=
" than for correct ";
124 #ifndef GRAPHICS_DISABLED
137 float rating,
float certainty) {
138 BLOB_CHOICE_LIST *ratings =
new BLOB_CHOICE_LIST();
140 new BLOB_CHOICE(class_id, rating, certainty, -1, -1, 0, 0, 0,
false);
141 BLOB_CHOICE_IT temp_it(ratings);
142 temp_it.add_after_stay_put(choice);
156 for (; tblob !=
NULL && index < choices.
length();
157 tblob = tblob->
next, index++) {