Please see https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/nemo/index.html for a list of pre-trained CTC models from NeMo.
23 lines
642 B
C++
23 lines
642 B
C++
// sherpa-onnx/python/csrc/offline-paraformer-model-config.cc
|
|
//
|
|
// Copyright (c) 2023 by manyeyes
|
|
|
|
#include "sherpa-onnx/python/csrc/offline-paraformer-model-config.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "sherpa-onnx/csrc/offline-paraformer-model-config.h"
|
|
|
|
namespace sherpa_onnx {
|
|
|
|
void PybindOfflineParaformerModelConfig(py::module *m) {
|
|
using PyClass = OfflineParaformerModelConfig;
|
|
py::class_<PyClass>(*m, "OfflineParaformerModelConfig")
|
|
.def(py::init<const std::string &>(), py::arg("model"))
|
|
.def_readwrite("model", &PyClass::model)
|
|
.def("__str__", &PyClass::ToString);
|
|
}
|
|
|
|
} // namespace sherpa_onnx
|