20#ifndef TESSERACT_WORDREC_LM_CONSISTENCY_H_
21#define TESSERACT_WORDREC_LM_CONSISTENCY_H_
31static const char *
const XHeightConsistencyEnumName[] = {
54 if (parent_info ==
nullptr) {
114 return static_cast<float>(INT16_MAX);
int num_inconsistent_spaces
int16_t xht_count[kNumPos]
LMConsistencyInfo(const LMConsistencyInfo *parent_info)
int NumInconsistentSpaces() const
int NumInconsistentPunc() const
void ComputeXheightConsistency(const BLOB_CHOICE *b, bool is_punc)
int InconsistentXHeight() const
float BodyMaxXHeight() const
static const int kShiftThresh
int16_t xht_count_punc[kNumPos]
int NumInconsistentCase() const
XHeightConsistencyEnum xht_decision
int NumInconsistentChartype() const
static const int kMaxEntropy
float BodyMinXHeight() const