Skip to content

Commit

Permalink
Fix reading FST on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Oct 7, 2023
1 parent 21a742c commit 8542c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sherpa-onnx/csrc/offline-ctc-fst-decoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace sherpa_onnx {
// this function is copied from kaldi
static fst::Fst<fst::StdArc> *ReadGraph(const std::string &filename) {
// read decoding network FST
std::ifstream is(filename);
std::ifstream is(filename, std::ios::binary);
if (!is.good()) {
SHERPA_ONNX_LOGE("Could not open decoding-graph FST %s", filename.c_str());
}
Expand Down

0 comments on commit 8542c55

Please sign in to comment.