20 #ifndef TESSERACT_WORDREC_PARAMS_MODEL_H_ 21 #define TESSERACT_WORDREC_PARAMS_MODEL_H_ 67 return weights_vec_[pass_];
70 return weights_vec_[pass];
75 bool ParseLine(
char *line,
char **key,
float *val);
88 #endif // TESSERACT_WORDREC_PARAMS_MODEL_H_ const GenericVector< float > & weights() const
float ComputeCost(const float features[]) const
ParamsModel(const char *lang, const GenericVector< float > &weights)
void SetPass(PassEnum pass)
const GenericVector< float > & weights_for_pass(PassEnum pass) const
bool SaveToFile(const char *full_path) const
bool LoadFromFp(const char *lang, FILE *fp, inT64 end_offset)
bool LoadFromFile(const char *lang, const char *full_path)
void Copy(const ParamsModel &other_model)
bool Equivalent(const ParamsModel &that) const