15 #ifndef TESSERACT_TRAINING_LANG_MODEL_HELPERS_H_ 16 #define TESSERACT_TRAINING_LANG_MODEL_HELPERS_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_
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)
bool(* FileReader)(const STRING &filename, GenericVector< char > *data)
bool WriteFile(const std::string &output_dir, const std::string &lang, const std::string &suffix, const GenericVector< char > &data, FileWriter writer)
bool WriteUnicharset(const UNICHARSET &unicharset, const std::string &output_dir, const std::string &lang, FileWriter writer, TessdataManager *traineddata)
STRING ReadFile(const std::string &filename, FileReader reader)
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)
bool(* FileWriter)(const GenericVector< char > &data, const STRING &filename)