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++) {
74 virtual bool Init(
const string &data_file_path,
const string &
lang,
85 virtual void Fold() = 0;
100 #endif // CHAR_CLASSIFIER_BASE_H
virtual ~CharClassifier()
CharClassifier(CharSet *char_set, TuningParams *params, FeatureBase *feat_extract)
virtual bool SetLearnParam(char *var_name, float val)=0
FeatureBase * feat_extract_
virtual bool LoadFoldingSets(const string &data_file_path, const string &lang, LangModel *lang_mod)=0
virtual int CharCost(CharSamp *char_samp)=0
virtual CharAltList * Classify(CharSamp *char_samp)=0
void SetCaseSensitive(bool case_sensitive)
bool CaseSensitive() const
virtual bool Train(CharSamp *char_samp, int ClassID)=0
FeatureBase * FeatureExtractor()
virtual bool Init(const string &data_file_path, const string &lang, LangModel *lang_mod)=0