20 #ifndef TESSERACT_WORDREC_PARAMS_MODEL_H_ 21 #define TESSERACT_WORDREC_PARAMS_MODEL_H_ 65 bool LoadFromFile(
const char *lang,
const char *full_path);
69 return weights_vec_[pass_];
72 return weights_vec_[pass];
77 bool ParseLine(
char *line,
char **key,
float *val);
90 #endif // TESSERACT_WORDREC_PARAMS_MODEL_H_ bool LoadFromFp(const char *lang, TFile *fp)
void SetPass(PassEnum pass)
const GenericVector< float > & weights_for_pass(PassEnum pass) const
float ComputeCost(const float features[]) const
bool Equivalent(const ParamsModel &that) const
bool LoadFromFile(const char *lang, const char *full_path)
bool SaveToFile(const char *full_path) const
const GenericVector< float > & weights() const
void Copy(const ParamsModel &other_model)
ParamsModel(const char *lang, const GenericVector< float > &weights)