15 #ifndef TESSERACT_TRAINING_LANG_MODEL_HELPERS_H_ 16 #define TESSERACT_TRAINING_LANG_MODEL_HELPERS_H_ 19 #include "genericvector.h" 22 #include "tessdatamanager.h" 23 #include "unicharset.h" 32 bool WriteFile(
const std::string& output_dir,
const std::string& lang,
42 TessdataManager* traineddata);
56 const std::string& output_dir,
const std::string& lang,
58 TessdataManager* traineddata);
75 const std::string& version_str,
const std::string& output_dir,
76 const std::string& lang,
bool pass_through_recoder,
84 #endif // TESSERACT_TRAINING_LANG_MODEL_HELPERS_H_ bool WriteUnicharset(const UNICHARSET &unicharset, const std::string &output_dir, const std::string &lang, FileWriter writer, TessdataManager *traineddata)
Definition: lang_model_helpers.cpp:71
Definition: unicharset.h:146
bool(* FileReader)(const STRING &filename, GenericVector< char > *data)
Definition: genericvector.h:360
Definition: baseapi.cpp:94
STRING ReadFile(const std::string &filename, FileReader reader)
Definition: lang_model_helpers.cpp:57
bool(* FileWriter)(const GenericVector< char > &data, const STRING &filename)
Definition: genericvector.h:363
bool WriteFile(const std::string &output_dir, const std::string &lang, const std::string &suffix, const GenericVector< char > &data, FileWriter writer)
Definition: lang_model_helpers.cpp:36
bool WriteRecoder(const UNICHARSET &unicharset, bool pass_through, const std::string &output_dir, const std::string &lang, FileWriter writer, STRING *radical_table_data, TessdataManager *traineddata)
Definition: lang_model_helpers.cpp:85
int CombineLangModel(const UNICHARSET &unicharset, const std::string &script_dir, const std::string &version_str, const std::string &output_dir, const std::string &lang, bool pass_through_recoder, const GenericVector< STRING > &words, const GenericVector< STRING > &puncs, const GenericVector< STRING > &numbers, bool lang_is_rtl, FileReader reader, FileWriter writer)
Definition: lang_model_helpers.cpp:185