Merge pull request #3206 from mrstegeman/alphabet-logic

Fix alphabet logic in generate_scorer_package.
This commit is contained in:
Reuben Morais 2020-08-02 17:24:13 +02:00 committed by GitHub
commit 04deda0239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ create_package(absl::optional<string> alphabet_path,
<< (vocab_looks_char_based ? "true" : "false") << "\n"; << (vocab_looks_char_based ? "true" : "false") << "\n";
} }
if (force_utf8.value() && !alphabet_path.has_value()) { if (!force_utf8.value() && !alphabet_path.has_value()) {
cerr << "No --alphabet file specified, not using bytes output mode, can't continue.\n"; cerr << "No --alphabet file specified, not using bytes output mode, can't continue.\n";
return 1; return 1;
} }