Conditional msg for missing lm.binary added by olafthiele · Pull Request #3435 · mozilla/DeepSpeech (original) (raw)
The error message for an unreadable lm binary file is misleading. We just had a user who wanted to build a scorer with generate_scorer and got the message "Could not read the scorer file." But he is missing the right lm.binary file. It would therefore be better to state that.
@reuben I changed the output to change the msg in case it the theDS_ERR_SCORER_UNREADABLE message. And I haven't been coding C++ for a long time, hope that's fine with you.