first commit for takway.ai
This commit is contained in:
commit
d7a6de771c
3256 files changed
+795173
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user