📄 train_word.h
字号:
// file: train_word.h//// this is the header for the word class// // make sure definitions are only made once//#ifndef __ISIP_TRAIN_WORD#define __ISIP_TRAIN_WORD // isip include files//#ifndef __ISIP_INTEGRAL#include <integral.h>#endif // Word: a class that is used as the word model for the token-passing type// of decoder//class Train_Word { //--------------------------------------------------------------------------- // // protected data // //---------------------------------------------------------------------------protected: // name and index of the word // char_1* name_d; int_4 index_d; // pronunciation parameters // int_4 num_prons_d; // number of pronunciations int_4* num_phones_d; // number of monophones int_4** phone_list_d; // phone list // active flag // logical_1 active_d; //--------------------------------------------------------------------------- // // public methods // //---------------------------------------------------------------------------public: // required methods // char_1* name_cc(); volatile void error_handler_cc(char_1* method_name, char_1* message); logical_1 debug_cc(FILE *fp, char_1* message); int_4 size_cc(); // destructors/constructors // ~Train_Word(); Train_Word(); Train_Word(int_4 index, char_1* name, int_4** phone_list, int_4* num_phones, int_4 num_prons); Train_Word(int_4 index, char_1* name, int_4 num_ph, int_4* phones); Train_Word(Train_Word& word); // word index methods // logical_1 set_index_cc(int_4 index); int_4 get_index_cc(); // word name methods // logical_1 set_name_cc(char_1* name); char_1* get_name_cc(); // phone/pronunciation methods // logical_1 set_phone_list_cc(int_4** phone_list, int_4* num_phones, int_4 num_prons); int_4** get_phone_list_cc(); int_4* get_num_phones_cc(); int_4 get_num_prons_cc(); int_4 get_phone_cc(int_4 index, int_4 pron); logical_1 add_pron_cc(int_4 num_ph, int_4* phones); // active status methods // logical_1 set_active_cc(logical_1 status); logical_1 get_active_cc(); //--------------------------------------------------------------------------- // // private methods // //---------------------------------------------------------------------------private: };// end of file//#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -