11 #ifndef _CSTRINGPREPROC__H__ 12 #define _CSTRINGPREPROC__H__ 14 #include <shogun/lib/config.h> 23 template <
class ST>
class CStringFeatures;
61 virtual const char*
get_name()
const {
return "UNKNOWN"; }
137 "has to be of C_STRING (%d) class!\n",
virtual EFeatureType get_feature_type()
return feature type
virtual EPreprocessorType get_type() const
return a type of preprocessor
virtual EFeatureClass get_feature_class()
return that we are string features (just fixed size matrices)
EFeatureClass
shogun feature class
virtual const char * get_name() const
return the name of the preprocessor
virtual ST * apply_to_string(ST *f, int32_t &len)=0
apply preproc on single feature vector
virtual EFeatureClass get_feature_class() const =0
Template class StringPreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CSt...
EFeatureType
shogun feature type
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
Class Preprocessor defines a preprocessor interface.
virtual CFeatures * apply(CFeatures *features)
virtual bool apply_to_string_features(CFeatures *f)=0