itn-model.h 474 B

1234567891011121314151617181920
  1. #ifndef ITN_MODEL_H
  2. #define ITN_MODEL_H
  3. #include <string>
  4. #include <map>
  5. #include <vector>
  6. namespace funasr {
  7. class ITNModel {
  8. public:
  9. virtual ~ITNModel(){};
  10. virtual void InitITN(const std::string &itn_tagger, const std::string &itn_verbalizer, int thread_num)=0;
  11. virtual std::string Normalize(const std::string& input){return "";};
  12. };
  13. ITNModel *CreateITNModel(std::map<std::string, std::string>& model_path, int thread_num);
  14. } // namespace funasr
  15. #endif