雾聪
2024-03-21 733930b2aa77ce3ef899298e96490deafe665356
update model.h
1个文件已修改
10 ■■■■ 已修改文件
runtime/onnxruntime/include/model.h 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
runtime/onnxruntime/include/model.h
@@ -5,6 +5,10 @@
#include <string>
#include <map>
#include "funasrruntime.h"
#include "vocab.h"
#include "phone-set.h"
#include "fst/fstlib.h"
#include "fst/symbol-table.h"
namespace funasr {
class Model {
  public:
@@ -24,9 +28,9 @@
    virtual std::vector<std::vector<float>> CompileHotwordEmbedding(std::string &hotwords){return std::vector<std::vector<float>>();};
    virtual std::string GetLang(){return "";};
    virtual int GetAsrSampleRate() = 0;
    virtual Vocab* GetVocab(){};
    virtual Vocab* GetLmVocab(){};
    virtual PhoneSet* GetPhoneSet(){};
    virtual Vocab* GetVocab() {return nullptr;};
    virtual Vocab* GetLmVocab() {return nullptr;};
    virtual PhoneSet* GetPhoneSet() {return nullptr;};
    std::shared_ptr<fst::Fst<fst::StdArc>> lm_ = nullptr;
};