20 #ifndef TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_
21 #define TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_
29 static const int kMaxSmallWordUnichars = 3;
30 static const int kMaxMediumWordUnichars = 6;
73 static const char *
const kParamsTrainingFeatureTypeName[] = {
74 "PTRAIN_DIGITS_SHORT",
89 "PTRAIN_SHAPE_COST_PER_CHAR",
90 "PTRAIN_NGRAM_COST_PER_CHAR",
91 "PTRAIN_NUM_BAD_PUNC",
92 "PTRAIN_NUM_BAD_CASE",
93 "PTRAIN_XHEIGHT_CONSISTENCY",
94 "PTRAIN_NUM_BAD_CHAR_TYPE",
95 "PTRAIN_NUM_BAD_SPACING",
96 "PTRAIN_NUM_BAD_FONT",
97 "PTRAIN_RATING_PER_CHAR",
149 #endif // TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_
ParamsTrainingHypothesis()
GenericVector< ParamsTrainingHypothesisList > hyp_list_vec
void StartHypothesisList()
ParamsTrainingHypothesis(const ParamsTrainingHypothesis &other)
kParamsTrainingFeatureType
ParamsTrainingHypothesis & AddHypothesis(const ParamsTrainingHypothesis &other)
GenericVector< ParamsTrainingHypothesis > ParamsTrainingHypothesisList
int ParamsTrainingFeatureByName(const char *name)
float features[PTRAIN_NUM_FEATURE_TYPES]