From 3024cffe49296af02c39a3eb70075aeabd989635 Mon Sep 17 00:00:00 2001 From: Michael Stegeman Date: Fri, 31 Jul 2020 12:46:03 -0800 Subject: [PATCH] Fix alphabet logic in generate_scorer_package. Fixes #3205 --- native_client/generate_scorer_package.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native_client/generate_scorer_package.cpp b/native_client/generate_scorer_package.cpp index 910bf9c2..4486b42c 100644 --- a/native_client/generate_scorer_package.cpp +++ b/native_client/generate_scorer_package.cpp @@ -50,7 +50,7 @@ create_package(absl::optional 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; }