#include <assert.h>
#include "clst.h"
#include "elst.h"
#include "fontinfo.h"
#include "genericvector.h"
#include "matrix.h"
#include "unichar.h"
#include "unicharset.h"
#include "werd.h"
Go to the source code of this file.
|
enum | BlobChoiceClassifier {
BCC_STATIC_CLASSIFIER,
BCC_ADAPTED_CLASSIFIER,
BCC_SPECKLE_CLASSIFIER,
BCC_AMBIG,
BCC_FAKE
} |
|
enum | PermuterType {
NO_PERM,
PUNC_PERM,
TOP_CHOICE_PERM,
LOWER_CASE_PERM,
UPPER_CASE_PERM,
NGRAM_PERM,
NUMBER_PERM,
USER_PATTERN_PERM,
SYSTEM_DAWG_PERM,
DOC_DAWG_PERM,
USER_DAWG_PERM,
FREQ_DAWG_PERM,
COMPOUND_PERM,
NUM_PERMUTER_TYPES
} |
|
enum | tesseract::ScriptPos { tesseract::SP_NORMAL,
tesseract::SP_SUBSCRIPT,
tesseract::SP_SUPERSCRIPT,
tesseract::SP_DROPCAP
} |
|
◆ BLOB_CHOICE_LIST_VECTOR
◆ BlobChoiceClassifier
Enumerator |
---|
BCC_STATIC_CLASSIFIER | |
BCC_ADAPTED_CLASSIFIER | |
BCC_SPECKLE_CLASSIFIER | |
BCC_AMBIG | |
BCC_FAKE | |
Definition at line 40 of file ratngs.h.
◆ PermuterType
Enumerator |
---|
NO_PERM | |
PUNC_PERM | |
TOP_CHOICE_PERM | |
LOWER_CASE_PERM | |
UPPER_CASE_PERM | |
NGRAM_PERM | |
NUMBER_PERM | |
USER_PATTERN_PERM | |
SYSTEM_DAWG_PERM | |
DOC_DAWG_PERM | |
USER_DAWG_PERM | |
FREQ_DAWG_PERM | |
COMPOUND_PERM | |
NUM_PERMUTER_TYPES | |
Definition at line 238 of file ratngs.h.
◆ EqualIgnoringCaseAndTerminalPunct()
Definition at line 794 of file ratngs.cpp.
797 if (word2.
unicharset() != uchset)
return false;
802 if (w1end - w1start != w2end - w2start)
return false;
803 for (
int i = 0; i < w1end - w1start; i++) {
const UNICHARSET * unicharset() const
UNICHAR_ID unichar_id(int index) const
UNICHAR_ID to_lower(UNICHAR_ID unichar_id) const
void punct_stripped(int *start_core, int *end_core) const
◆ FindMatchingChoice()
Definition at line 161 of file ratngs.cpp.
164 BLOB_CHOICE_IT choice_it(bc_list);
165 for (choice_it.mark_cycle_pt(); !choice_it.cycled_list();
166 choice_it.forward()) {
UNICHAR_ID unichar_id() const
◆ print_ratings_list()
void print_ratings_list |
( |
const char * |
msg, |
|
|
BLOB_CHOICE_LIST * |
ratings, |
|
|
const UNICHARSET & |
current_unicharset |
|
) |
| |
print_ratings_list
Send all the ratings out to the logfile.
- Parameters
-
msg | intro message |
ratings | list of ratings |
current_unicharset | unicharset that can be used for id-to-unichar conversion |
Definition at line 822 of file ratngs.cpp.
825 if (ratings->length() == 0) {
833 c_it.set_to_list(ratings);
834 for (c_it.mark_cycle_pt(); !c_it.cycled_list(); c_it.forward()) {
835 c_it.data()->print(¤t_unicharset);
836 if (!c_it.at_last())
tprintf(
"\n");