
Definition at line 22 of file CharFeatures.h.
Public Member Functions | |
| CCharFeatures (EAlphabet alpha, int32_t size=0) | |
| CCharFeatures (CAlphabet *alpha, int32_t size=0) | |
| CCharFeatures (const CCharFeatures &orig) | |
| CCharFeatures (EAlphabet alphabet, char *feature_matrix, int32_t num_feat, int32_t num_vec) | |
| CCharFeatures (EAlphabet alphabet, char *fname) | |
| ~CCharFeatures () | |
| CAlphabet * | get_alphabet () |
| virtual void | copy_feature_matrix (char *src, int32_t num_feat, int32_t num_vec) |
| virtual bool | load (char *fname) |
| virtual bool | save (char *fname) |
Protected Attributes | |
| CAlphabet * | alphabet |
| CCharFeatures::CCharFeatures | ( | EAlphabet | alpha, | |
| int32_t | size = 0 | |||
| ) |
constructor
| alpha | alphabet (type) to use | |
| size | cache size |
Definition at line 15 of file CharFeatures.cpp.
| CCharFeatures::CCharFeatures | ( | CAlphabet * | alpha, | |
| int32_t | size = 0 | |||
| ) |
constructor
| alpha | alphabet to use | |
| size | cache size |
Definition at line 21 of file CharFeatures.cpp.
| CCharFeatures::CCharFeatures | ( | const CCharFeatures & | orig | ) |
copy constructor
Definition at line 27 of file CharFeatures.cpp.
| CCharFeatures::CCharFeatures | ( | EAlphabet | alphabet, | |
| char * | feature_matrix, | |||
| int32_t | num_feat, | |||
| int32_t | num_vec | |||
| ) |
constructor
| alphabet | alphabet to use | |
| feature_matrix | feature matrix to use | |
| num_feat | number of features in matrix | |
| num_vec | number of vectors in matrix |
Definition at line 33 of file CharFeatures.cpp.
| CCharFeatures::CCharFeatures | ( | EAlphabet | alphabet, | |
| char * | fname | |||
| ) |
constructor
| alphabet | alphabet (type) to use | |
| fname | filename to load features from |
Definition at line 39 of file CharFeatures.cpp.
| CCharFeatures::~CCharFeatures | ( | ) |
Definition at line 46 of file CharFeatures.cpp.
| CAlphabet* CCharFeatures::get_alphabet | ( | ) |
| virtual void CCharFeatures::copy_feature_matrix | ( | char * | src, | |
| int32_t | num_feat, | |||
| int32_t | num_vec | |||
| ) | [virtual] |
copy feature matrix
wrapper to base class' method
| src | feature matrix to copy | |
| num_feat | number of features | |
| num_vec | number of vectors |
Reimplemented from CSimpleFeatures< char >.
Definition at line 77 of file CharFeatures.h.
| bool CCharFeatures::load | ( | char * | fname | ) | [virtual] |
load features from file
| fname | filename to load from |
Reimplemented from CFeatures.
Definition at line 52 of file CharFeatures.cpp.
| bool CCharFeatures::save | ( | char * | fname | ) | [virtual] |
save features to file
| fname | filename to save to |
Reimplemented from CFeatures.
Definition at line 103 of file CharFeatures.cpp.
CAlphabet* CCharFeatures::alphabet [protected] |
alphabet
Definition at line 98 of file CharFeatures.h.