25 #ifndef CUBE_RECO_CONTEXT_H 26 #define CUBE_RECO_CONTEXT_H 41 class TessdataManager;
57 inline const string &
Lang()
const {
return lang_; }
69 return ((lang_ ==
"ara") ?
R2L :
L2R);
74 return (lang_ !=
"ara" && lang_ !=
"hin");
78 return (lang_ ==
"ara");
82 return (lang_ !=
"ara" && lang_ !=
"hin");
86 return (lang_ ==
"ara");
92 inline bool OOD()
const {
return lang_mod_->
OOD(); }
95 inline bool Punc()
const {
return lang_mod_->
Punc(); }
101 size_normalization_ = size_normalization;
104 noisy_input_ = noisy_input;
107 lang_mod_->
SetOOD(ood_enabled);
116 lang_mod_->
SetPunc(punc_enabled);
147 bool size_normalization_;
157 #endif // CUBE_RECO_CONTEXT_H
ReadOrder ReadingOrder() const
const UNICHARSET * TessUnicharset() const
void SetSizeNormalization(bool size_normalization)
void SetCaseSensitive(bool case_sensitive)
void SetCaseSensitive(bool case_sensitive)
static CubeRecoContext * Create(Tesseract *tess_obj, TessdataManager *tessdata_manager, UNICHARSET *tess_unicharset)
CharClassifier * Classifier() const
WordUnigrams * WordUnigramsObj() const
LangModel * LangMod() const
TuningParams * Params() const
tesseract::Tesseract * TesseractObject() const
bool CaseSensitive() const
void SetPunc(bool punc_enabled)
const string & Lang() const
void SetNoisyInput(bool noisy_input)
void SetWordList(bool word_list_enabled)
CharSet * CharacterSet() const
bool GetDataFilePath(string *path) const
WordSizeModel * SizeModel() const
bool CaseSensitive() const
void SetOOD(bool ood_enabled)
void SetNumeric(bool numeric_enabled)
void SetPunc(bool punc_enabled)
void SetNumeric(bool numeric)
CubeRecoContext(Tesseract *tess_obj)
CharBigrams * Bigrams() const
bool SizeNormalization() const
void SetWordList(bool word_list)