Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/sentencepiece.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/sentencepiece_processor.cc')
-rw-r--r--src/sentencepiece_processor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sentencepiece_processor.cc b/src/sentencepiece_processor.cc
index 1e2ddcb..8d7139d 100644
--- a/src/sentencepiece_processor.cc
+++ b/src/sentencepiece_processor.cc
@@ -43,7 +43,7 @@ SentencePieceProcessor::SentencePieceProcessor() {}
SentencePieceProcessor::~SentencePieceProcessor() {}
util::Status SentencePieceProcessor::Load(util::min_string_view filename) {
- auto input = filesystem::NewReadableFile(string_util::ToSV(filename));
+ auto input = filesystem::NewReadableFile(string_util::ToSV(filename), true);
RETURN_IF_ERROR(input->status());
std::string proto;
CHECK_OR_RETURN(input->ReadAll(&proto));