Fix typo in offline-lm-config.cc (#1229)
This commit is contained in:
@@ -15,7 +15,7 @@ void PybindOfflineLMConfig(py::module *m) {
|
|||||||
py::class_<PyClass>(*m, "OfflineLMConfig")
|
py::class_<PyClass>(*m, "OfflineLMConfig")
|
||||||
.def(py::init<const std::string &, float, int32_t, const std::string &>(),
|
.def(py::init<const std::string &, float, int32_t, const std::string &>(),
|
||||||
py::arg("model"), py::arg("scale") = 0.5f,
|
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("model", &PyClass::model)
|
||||||
.def_readwrite("scale", &PyClass::scale)
|
.def_readwrite("scale", &PyClass::scale)
|
||||||
.def_readwrite("lm_provider", &PyClass::lm_provider)
|
.def_readwrite("lm_provider", &PyClass::lm_provider)
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ class OfflineRecognizer(object):
|
|||||||
lm_config = OfflineLMConfig(
|
lm_config = OfflineLMConfig(
|
||||||
model=lm,
|
model=lm,
|
||||||
scale=lm_scale,
|
scale=lm_scale,
|
||||||
|
lm_num_threads=num_threads,
|
||||||
|
lm_provider=provider,
|
||||||
)
|
)
|
||||||
|
|
||||||
recognizer_config = OfflineRecognizerConfig(
|
recognizer_config = OfflineRecognizerConfig(
|
||||||
|
|||||||
Reference in New Issue
Block a user