first commit for takway.ai

This commit is contained in:
IrvingGao committed 2024-05-18 15:50:56 +08:00
commit d7a6de771c
3256 files changed
+795173

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
/**
* 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 <stdint.h>
#include <string>
#include <vector>
#include <map>
using namespace std;
namespace funasr {
class SegDict {
private:
std::map<string, std::vector<string>> seg_dict;
public:
SegDict(const char *filename);
~SegDict();
std::vector<std::string> GetTokensByWord(const std::string &word);
};
} // namespace funasr
#endif