Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save vocabulary files in the JSON format #1293

Merged
merged 3 commits into from
Jun 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo in error message
guillaumekln committed Jun 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7a9818b207b8c0ab5a8eb1b1f33530d4b8030668
4 changes: 2 additions & 2 deletions src/models/sequence_to_sequence.cc
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ namespace ctranslate2 {
} else {
_target_vocabulary = load_vocabulary(model_reader, "target_vocabulary", vocab_info);
if (!_target_vocabulary)
throw std::runtime_error("Cannot load the target vocabulary from the model direcory");
throw std::runtime_error("Cannot load the target vocabulary from the model directory");

auto source_vocabulary = load_vocabulary(model_reader, "source_vocabulary", vocab_info);

@@ -45,7 +45,7 @@ namespace ctranslate2 {
}

if (_source_vocabularies.empty())
throw std::runtime_error("Cannot load the source vocabulary from the model direcory");
throw std::runtime_error("Cannot load the source vocabulary from the model directory");
}
}