23 #ifndef CHAR_CLASSIFIER_BASE_H 24 #define CHAR_CLASSIFIER_BASE_H 51 for (
int fold_set = 0; fold_set <
fold_set_cnt_; fold_set++) {
68 virtual bool Init(
const string &data_file_path,
const string &
lang,
79 virtual void Fold() = 0;
94 #endif // CHAR_CLASSIFIER_BASE_H
virtual CharAltList * Classify(CharSamp *char_samp)=0
void SetCaseSensitive(bool case_sensitive)
virtual bool LoadFoldingSets(const string &data_file_path, const string &lang, LangModel *lang_mod)=0
virtual bool SetLearnParam(char *var_name, float val)=0
FeatureBase * feat_extract_
virtual ~CharClassifier()
FeatureBase * FeatureExtractor()
CharClassifier(CharSet *char_set, TuningParams *params, FeatureBase *feat_extract)
virtual bool Init(const string &data_file_path, const string &lang, LangModel *lang_mod)=0
bool CaseSensitive() const
virtual int CharCost(CharSamp *char_samp)=0
virtual bool Train(CharSamp *char_samp, int ClassID)=0