19 #ifndef TESSERACT_WORDREC_PARAMS_MODEL_H_ 20 #define TESSERACT_WORDREC_PARAMS_MODEL_H_ 51 for (
auto & p : weights_vec_) p.clear();
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_
bool SaveToFile(const char *full_path) const
const GenericVector< float > & weights_for_pass(PassEnum pass) const
bool LoadFromFp(const char *lang, TFile *fp)
void Copy(const ParamsModel &other_model)
ParamsModel(const char *lang, const GenericVector< float > &weights)
bool Equivalent(const ParamsModel &that) const
float ComputeCost(const float features[]) const
void SetPass(PassEnum pass)
const GenericVector< float > & weights() const