#include <classifier_base.h>
Public Member Functions | |
| CharClassifier (CharSet *char_set, TuningParams *params, FeatureBase *feat_extract) | |
| virtual | ~CharClassifier () |
| virtual CharAltList * | Classify (CharSamp *char_samp)=0 |
| virtual int | CharCost (CharSamp *char_samp)=0 |
| virtual bool | Train (CharSamp *char_samp, int ClassID)=0 |
| virtual bool | SetLearnParam (char *var_name, float val)=0 |
| virtual bool | Init (const string &data_file_path, const string &lang, LangModel *lang_mod)=0 |
| FeatureBase * | FeatureExtractor () |
| bool | CaseSensitive () const |
| void | SetCaseSensitive (bool case_sensitive) |
Protected Member Functions | |
| virtual void | Fold ()=0 |
| virtual bool | LoadFoldingSets (const string &data_file_path, const string &lang, LangModel *lang_mod)=0 |
Protected Attributes | |
| FeatureBase * | feat_extract_ |
| CharSet * | char_set_ |
| TuningParams * | params_ |
| int ** | fold_sets_ |
| int * | fold_set_len_ |
| int | fold_set_cnt_ |
| bool | init_ |
| bool | case_sensitive_ |
| tesseract::CharClassifier::CharClassifier | ( | CharSet * | char_set, | |
| TuningParams * | params, | |||
| FeatureBase * | feat_extract | |||
| ) | [inline] |
| virtual tesseract::CharClassifier::~CharClassifier | ( | ) | [inline, virtual] |
| bool tesseract::CharClassifier::CaseSensitive | ( | ) | const [inline] |
| virtual int tesseract::CharClassifier::CharCost | ( | CharSamp * | char_samp | ) | [pure virtual] |
Implemented in tesseract::ConvNetCharClassifier, and tesseract::HybridNeuralNetCharClassifier.
| virtual CharAltList* tesseract::CharClassifier::Classify | ( | CharSamp * | char_samp | ) | [pure virtual] |
Implemented in tesseract::ConvNetCharClassifier, and tesseract::HybridNeuralNetCharClassifier.
| FeatureBase* tesseract::CharClassifier::FeatureExtractor | ( | ) | [inline] |
| virtual void tesseract::CharClassifier::Fold | ( | ) | [protected, pure virtual] |
| virtual bool tesseract::CharClassifier::Init | ( | const string & | data_file_path, | |
| const string & | lang, | |||
| LangModel * | lang_mod | |||
| ) | [pure virtual] |
| virtual bool tesseract::CharClassifier::LoadFoldingSets | ( | const string & | data_file_path, | |
| const string & | lang, | |||
| LangModel * | lang_mod | |||
| ) | [protected, pure virtual] |
| void tesseract::CharClassifier::SetCaseSensitive | ( | bool | case_sensitive | ) | [inline] |
| virtual bool tesseract::CharClassifier::SetLearnParam | ( | char * | var_name, | |
| float | val | |||
| ) | [pure virtual] |
Implemented in tesseract::ConvNetCharClassifier, and tesseract::HybridNeuralNetCharClassifier.
| virtual bool tesseract::CharClassifier::Train | ( | CharSamp * | char_samp, | |
| int | ClassID | |||
| ) | [pure virtual] |
Implemented in tesseract::ConvNetCharClassifier, and tesseract::HybridNeuralNetCharClassifier.
bool tesseract::CharClassifier::case_sensitive_ [protected] |
CharSet* tesseract::CharClassifier::char_set_ [protected] |
FeatureBase* tesseract::CharClassifier::feat_extract_ [protected] |
int tesseract::CharClassifier::fold_set_cnt_ [protected] |
int* tesseract::CharClassifier::fold_set_len_ [protected] |
int** tesseract::CharClassifier::fold_sets_ [protected] |
bool tesseract::CharClassifier::init_ [protected] |
TuningParams* tesseract::CharClassifier::params_ [protected] |
1.6.3