Skip to content

Commit

Permalink
Remove missing symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcauliffe committed Jun 1, 2023
1 parent 560600b commit 8f95aa7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/hmm/hmm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void init_hmm(py::module &_m) {
py::arg("ctx_dep"), py::arg("hmm_topo"))
.def_static("read_from_file", [](std::string file_path) {

TransitionModel trans_model;
static TransitionModel trans_model;
ReadKaldiObject(file_path, &trans_model);
return &trans_model;
}, py::return_value_policy::reference)
Expand Down
3 changes: 2 additions & 1 deletion extensions/lat/lat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ void pybind_determinize_lattice_pruned(py::module& m) {
py::arg("prune"),
py::arg("ofst"),
py::arg("opts")= DeterminizeLatticePhonePrunedOptions());
m.def("DeterminizeLatticeInsertPhones",
/*m.def("DeterminizeLatticeInsertPhones",
&DeterminizeLatticeInsertPhones<kaldi::LatticeWeight>,
"This function takes in lattices and inserts phones at phone boundaries. It "
"uses the transition model to work out the transition_id to phone map. The "
Expand All @@ -1062,6 +1062,7 @@ void pybind_determinize_lattice_pruned(py::module& m) {
"works out the phones according to this value.",
py::arg("trans_model"),
py::arg("fst"));
*/
m.def("DeterminizeLatticeDeletePhones",
&DeterminizeLatticeDeletePhones<kaldi::LatticeWeight>,
"This function takes in lattices and deletes \"phones\" from them. The \"phones\" "
Expand Down
2 changes: 1 addition & 1 deletion extensions/tree/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ void pybind_context_dep(py::module& m) {
py::arg("P"), py::arg("to_pdf"))
.def_static("read_from_file",[](const std::string file_path){

ContextDependency ctx_dep;
static ContextDependency ctx_dep;
ReadKaldiObject(file_path, &ctx_dep);
return &ctx_dep;
}, py::arg("file_path"))
Expand Down

0 comments on commit 8f95aa7

Please sign in to comment.