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",
154 #endif // TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_
float features[PTRAIN_NUM_FEATURE_TYPES]
void StartHypothesisList()
ParamsTrainingHypothesis(const ParamsTrainingHypothesis &other)
int ParamsTrainingFeatureByName(const char *name)
GenericVector< ParamsTrainingHypothesis > ParamsTrainingHypothesisList
ParamsTrainingHypothesis & AddHypothesis(const ParamsTrainingHypothesis &other)
ParamsTrainingHypothesis & operator=(const ParamsTrainingHypothesis &other)
ParamsTrainingHypothesis()
kParamsTrainingFeatureType
ParamsTrainingBundle()=default
GenericVector< ParamsTrainingHypothesisList > hyp_list_vec