Skip to content

Commit

Permalink
Imporved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
wasertech committed Jan 12, 2023
1 parent 60d213f commit 739e7a8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion native_client/generate_scorer_package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,17 @@ create_package(absl::optional<string> 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;
}

Expand Down

0 comments on commit 739e7a8

Please sign in to comment.