Support replacing homonphonic phrases (#2153)

This commit is contained in:
Fangjun Kuang
2025-04-27 15:31:11 +08:00
committed by GitHub
parent e3280027f9
commit f64c58342b
42 changed files with 834 additions and 134 deletions

18
sherpa-onnx/csrc/jieba.h Normal file
View File

@@ -0,0 +1,18 @@
// sherpa-onnx/csrc/jieba.h
//
// Copyright (c) 2025 Xiaomi Corporation
#ifndef SHERPA_ONNX_CSRC_JIEBA_H_
#define SHERPA_ONNX_CSRC_JIEBA_H_
#include <memory>
#include <string>
#include "cppjieba/Jieba.hpp"
namespace sherpa_onnx {
std::unique_ptr<cppjieba::Jieba> InitJieba(const std::string &dict_dir);
}
#endif // SHERPA_ONNX_CSRC_JIEBA_H_