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 LoadFromFp(const char *lang, TFile *fp)
void Copy(const ParamsModel &other_model)
const GenericVector< float > & weights_for_pass(PassEnum pass) const
float ComputeCost(const float features[]) const
bool SaveToFile(const char *full_path) const
bool Equivalent(const ParamsModel &that) const
const GenericVector< float > & weights() const
ParamsModel(const char *lang, const GenericVector< float > &weights)
void SetPass(PassEnum pass)