xsjk
Committed by GitHub

Fix typo in offline-lm-config.cc (#1229)

... ... @@ -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)
... ...
... ... @@ -156,6 +156,8 @@ class OfflineRecognizer(object):
lm_config = OfflineLMConfig(
model=lm,
scale=lm_scale,
lm_num_threads=num_threads,
lm_provider=provider,
)
recognizer_config = OfflineRecognizerConfig(
... ...