20 #ifndef TESSERACT_WORDREC_PARAMS_MODEL_H_ 21 #define TESSERACT_WORDREC_PARAMS_MODEL_H_ 23 #include "genericvector.h" 24 #include "params_training_featdef.h" 65 bool LoadFromFile(
const char *lang,
const char *full_path);
77 bool ParseLine(
char *line,
char **key,
float *val);
90 #endif // TESSERACT_WORDREC_PARAMS_MODEL_H_ void Clear()
Definition: params_model.h:51
bool SaveToFile(const char *full_path) const
Definition: params_model.cpp:152
ParamsModel(const char *lang, const GenericVector< float > &weights)
Definition: params_model.h:43
ParamsModel()
Definition: params_model.h:42
Definition: params_model.h:39
bool Equivalent(const ParamsModel &that) const
Definition: params_model.cpp:90
GenericVector< float > weights_vec_[PTRAIN_NUM_PASSES]
Definition: params_model.h:85
void Copy(const ParamsModel &other_model)
Definition: params_model.cpp:48
void SetPass(PassEnum pass)
Definition: params_model.h:74
STRING lang_
Definition: params_model.h:79
Definition: serialis.h:77
Definition: params_model.h:37
Definition: params_model.h:36
Definition: baseapi.cpp:94
const GenericVector< float > & weights_for_pass(PassEnum pass) const
Definition: params_model.h:71
bool Initialized()
Definition: params_model.h:45
PassEnum pass_
Definition: params_model.h:82
bool ParseLine(char *line, char **key, float *val)
Definition: params_model.cpp:57
Definition: params_training_featdef.h:70
Definition: params_model.h:32
int size() const
Definition: genericvector.h:71
float ComputeCost(const float features[]) const
Definition: params_model.cpp:81
bool LoadFromFp(const char *lang, TFile *fp)
Definition: params_model.cpp:114
PassEnum
Definition: params_model.h:35
bool LoadFromFile(const char *lang, const char *full_path)
Definition: params_model.cpp:103
const GenericVector< float > & weights() const
Definition: params_model.h:68
void Print()
Definition: params_model.cpp:38