MCPcopy Create free account
hub / github.com/creatale/node-dv / ClearWordChoices

Method ClearWordChoices

deps/tesseract/ccstruct/pageres.cpp:1174–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172 if (blamer_bundle != NULL) blamer_bundle->ClearResults();
1173}
1174void WERD_RES::ClearWordChoices() {
1175 best_choice = NULL;
1176 if (raw_choice != NULL) {
1177 delete raw_choice;
1178 raw_choice = NULL;
1179 }
1180 best_choices.clear();
1181 if (ep_choice != NULL) {
1182 delete ep_choice;
1183 ep_choice = NULL;
1184 }
1185}
1186void WERD_RES::ClearRatings() {
1187 if (ratings != NULL) {
1188 ratings->delete_matrix_pointers();

Callers 2

CorrectClassifyWordsMethod · 0.80
ResetNGramSearchMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected