Skip to content

Commit

Permalink
Fix typo in offline-lm-config.cc (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
xsjk authored Aug 7, 2024
1 parent 9ee2943 commit 1da75ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sherpa-onnx/python/csrc/offline-lm-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void PybindOfflineLMConfig(py::module *m) {
py::class_<PyClass>(*m, "OfflineLMConfig")
.def(py::init<const std::string &, float, int32_t, const std::string &>(),
py::arg("model"), py::arg("scale") = 0.5f,
py::arg("lm_num_threads") = 1, py::arg("lm-provider") = "cpu")
py::arg("lm_num_threads") = 1, py::arg("lm_provider") = "cpu")
.def_readwrite("model", &PyClass::model)
.def_readwrite("scale", &PyClass::scale)
.def_readwrite("lm_provider", &PyClass::lm_provider)
Expand Down
2 changes: 2 additions & 0 deletions sherpa-onnx/python/sherpa_onnx/offline_recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def from_transducer(
lm_config = OfflineLMConfig(
model=lm,
scale=lm_scale,
lm_num_threads=num_threads,
lm_provider=provider,
)

recognizer_config = OfflineRecognizerConfig(
Expand Down

0 comments on commit 1da75ee

Please sign in to comment.