Searched refs:ambig_spec (Results 1 – 4 of 4) sorted by relevance
/dports/graphics/tesseract/tesseract-5.0.0/src/ccutil/ |
H A D | ambigs.cpp | 112 auto *ambig_spec = new AmbigSpec(); in LoadUnicharAmbigs() local 193 AmbigSpec *ambig_spec = lst_it.data(); in LoadUnicharAmbigs() local 195 UnicharIdArrayUtils::print(ambig_spec->wrong_ngram, *unicharset); in LoadUnicharAmbigs() 359 ambig_spec->type = static_cast<AmbigType>(type); in InsertIntoTable() 363 ambig_spec->type = CASE_AMBIG; in InsertIntoTable() 366 ambig_spec->wrong_ngram_size = in InsertIntoTable() 383 unicharset->set_isngram(ambig_spec->correct_ngram_id, true); in InsertIntoTable() 390 unichar_id = ambig_spec->correct_ngram_id; in InsertIntoTable() 397 ambig_spec->correct_fragments[i] = unichar_id; in InsertIntoTable() 399 ambig_spec->correct_fragments[i] = INVALID_UNICHAR_ID; in InsertIntoTable() [all …]
|
H A D | ambigs.h | 221 const char *replacement_string, int type, AmbigSpec *ambig_spec,
|
/dports/graphics/tesseract/tesseract-5.0.0/src/dict/ |
H A D | stopper.cpp | 219 const AmbigSpec *ambig_spec = spec_it.data(); in NoDangerousAmbig() local 221 int compare = UnicharIdArrayUtils::compare(wrong_ngram, ambig_spec->wrong_ngram); in NoDangerousAmbig() 226 UnicharIdArrayUtils::print(ambig_spec->wrong_ngram, getUnicharset()); in NoDangerousAmbig() 232 UNICHAR_ID leftmost_id = ambig_spec->correct_fragments[0]; in NoDangerousAmbig() 238 getUnicharset().get_isngram(ambig_spec->correct_ngram_id), in NoDangerousAmbig() 246 getUnicharset().id_to_unichar(ambig_spec->correct_ngram_id)); in NoDangerousAmbig() 247 UnicharIdArrayUtils::print(ambig_spec->correct_fragments, getUnicharset()); in NoDangerousAmbig() 249 ReplaceAmbig(i, ambig_spec->wrong_ngram_size, ambig_spec->correct_ngram_id, best_choice, in NoDangerousAmbig() 251 } else if (i > 0 || ambig_spec->type != CASE_AMBIG) { in NoDangerousAmbig() 255 UnicharIdArrayUtils::print(ambig_spec->correct_fragments, getUnicharset()); in NoDangerousAmbig() [all …]
|
/dports/graphics/tesseract/tesseract-5.0.0/src/ccmain/ |
H A D | applybox.cpp | 636 const AmbigSpec *ambig_spec = spec_it.data(); in SearchForText() local 638 if (ambig_spec->wrong_ngram[1] == INVALID_UNICHAR_ID && in SearchForText() 639 ambig_spec->correct_ngram_id == target_text[text_index]) { in SearchForText()
|