Skip to content

Commit

Permalink
Read the tokenizer config using path.open to support special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
baijumeswani committed Feb 20, 2025
1 parent 30609b7 commit 00b1063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operators/tokenizer/tokenizer_jsconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class TokenJsonConfig final {
vocab_stream = std::make_unique<std::istringstream>(vocab_str);
}
} else {
auto ifs = std::make_unique<std::ifstream>(vocab_path_);
auto ifs = std::make_unique<std::ifstream>(path(vocab_path_.data()).open());
if (!ifs->is_open()) {
return OrtxStatus(extError_t::kOrtxErrorInvalidArgument, vocab_path_ + ": does not exist.");
}
Expand Down

0 comments on commit 00b1063

Please sign in to comment.