/** * Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved. * MIT License (https://opensource.org/licenses/MIT) */ #ifndef SEG_DICT_H #define SEG_DICT_H #include #include #include #include using namespace std; namespace funasr { class SegDict { private: std::map> seg_dict; public: SegDict(const char *filename); ~SegDict(); std::vector GetTokensByWord(const std::string &word); }; } // namespace funasr #endif