Merge pull request #3206 from mrstegeman/alphabet-logic
Fix alphabet logic in generate_scorer_package.
This commit is contained in:
commit
04deda0239
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue