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
void SetSizeNormalization(bool size_normalization)
LangModel * LangMod() const
void SetPunc(bool punc_enabled)
tesseract::Tesseract * TesseractObject() const
bool SizeNormalization() const
ReadOrder ReadingOrder() const
WordUnigrams * WordUnigramsObj() const
void SetNoisyInput(bool noisy_input)
void SetWordList(bool word_list_enabled)
bool CaseSensitive() const
CubeRecoContext(Tesseract *tess_obj)
CharBigrams * Bigrams() const
const UNICHARSET * TessUnicharset() const
void SetNumeric(bool numeric_enabled)
void SetWordList(bool word_list)
CharClassifier * Classifier() const
void SetCaseSensitive(bool case_sensitive)
TuningParams * Params() const
void SetNumeric(bool numeric)
void SetOOD(bool ood_enabled)
bool CaseSensitive() const
WordSizeModel * SizeModel() const
CharSet * CharacterSet() const
void SetPunc(bool punc_enabled)
static CubeRecoContext * Create(Tesseract *tess_obj, TessdataManager *tessdata_manager, UNICHARSET *tess_unicharset)
void SetCaseSensitive(bool case_sensitive)
bool GetDataFilePath(string *path) const
const string & Lang() const