mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update punc-model.h
This commit is contained in:
parent
54931dd4e1
commit
db376fbd8b
@ -12,8 +12,8 @@ class PuncModel {
|
||||
public:
|
||||
virtual ~PuncModel(){};
|
||||
virtual void InitPunc(const std::string &punc_model, const std::string &punc_config, int thread_num)=0;
|
||||
virtual std::string AddPunc(const char* sz_input){};
|
||||
virtual std::string AddPunc(const char* sz_input, std::vector<std::string>& arr_cache){};
|
||||
virtual std::string AddPunc(const char* sz_input){return "";};
|
||||
virtual std::string AddPunc(const char* sz_input, std::vector<std::string>& arr_cache){return "";};
|
||||
};
|
||||
|
||||
PuncModel *CreatePuncModel(std::map<std::string, std::string>& model_path, int thread_num, PUNC_TYPE type=PUNC_OFFLINE);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user