From 739e7a8caa4664917dd789993c5a446112fdf95b Mon Sep 17 00:00:00 2001 From: wasertech Date: Thu, 12 Jan 2023 15:01:33 +0100 Subject: [PATCH] Imporved readability --- native_client/generate_scorer_package.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/native_client/generate_scorer_package.cpp b/native_client/generate_scorer_package.cpp index 8e49086b8..23128fcf9 100644 --- a/native_client/generate_scorer_package.cpp +++ b/native_client/generate_scorer_package.cpp @@ -51,7 +51,17 @@ create_package(absl::optional checkpoint_path, } if (!force_bytes_output_mode.value() && !checkpoint_path.has_value()) { - cerr << "No --checkpoint file specified, not using bytes output mode, can't continue.\nCheckpoint path must contains an alphabet.\nStart by creating an alphabet for your models using coqui_stt_training.util.check_characters if needed.\n\n python -m coqui_stt_training.util.check_characters \\\n --csv-files ... \\\n --alphabet-format | grep -v '^#' | sort -n > models/alphabet.txt\n\nThis will create an alphabet models/alphabet.txt.\nNow rerun this script by giving models/ as the checkpoint path.\n\n generate_scorer_package \\\n --checkpoint models/ \\\n ...\n"; + cerr << "No --checkpoint file specified, not using bytes output mode, can't continue." + << "\nCheckpoint path must contains an alphabet." + << "\nStart by creating an alphabet for your models using coqui_stt_training.util.check_characters if needed.\n" + << "\n python -m coqui_stt_training.util.check_characters \\" + << "\n --csv-files ... \\" + << "\n --alphabet-format | grep -v '^#' | sort -n > models/alphabet.txt\n" + << "\nThis will create an alphabet models/alphabet.txt.\n" + << "Now rerun this script by giving models/ as the checkpoint path.\n" + << "\n generate_scorer_package \\" + << "\n --checkpoint models/ \\" + << "\n ...\n"; return 1; }