Fix alphabet logic in generate_scorer_package.

Fixes #3205
This commit is contained in:
Michael Stegeman 2020-07-31 12:46:03 -08:00
parent 41db367428
commit 3024cffe49
No known key found for this signature in database
GPG Key ID: FEDD596D296F7400
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";
}
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";
return 1;
}