| | |
| | | #pragma once |
| | | #include "yaml-cpp/yaml.h" |
| | | /** |
| | | * Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved. |
| | | * MIT License (https://opensource.org/licenses/MIT) |
| | | */ |
| | | |
| | | #pragma once |
| | | #include <yaml-cpp/yaml.h> |
| | | |
| | | namespace funasr { |
| | | class CTokenizer { |
| | | private: |
| | | |
| | |
| | | |
| | | CTokenizer(const char* sz_yamlfile); |
| | | CTokenizer(); |
| | | ~CTokenizer(); |
| | | bool OpenYaml(const char* sz_yamlfile); |
| | | void ReadYaml(const YAML::Node& node); |
| | | vector<string> Id2String(vector<int> input); |
| | |
| | | void Tokenize(const char* str_info, vector<string>& str_out, vector<int>& id_out); |
| | | |
| | | }; |
| | | |
| | | } // namespace funasr |