Deepspeech: error: unrecognized arguments: --scorer deepspeech-0.6.1-models/kenlm.scorer

Created on 12 Feb 2020  路  11Comments  路  Source: mozilla/DeepSpeech

follwed the instructions on the project's main page and got the following results:

(deepspeech-venv) me@box:~/DeepSpeech$ deepspeech --model deepspeech-0.6.1-models/output_graph.pbmm --scorer deepspeech-0.6.1-models/kenlm.scorer --audio audio/2830-3980-0043.wav
usage: deepspeech [-h] --model MODEL [--lm [LM]] [--trie [TRIE]] --audio AUDIO
[--beam_width BEAM_WIDTH] [--lm_alpha LM_ALPHA]
[--lm_beta LM_BETA] [--version] [--extended] [--json]
deepspeech: error: unrecognized arguments: --scorer deepspeech-0.6.1-models/kenlm.scorer

Most helpful comment

If that is the case (The flag --scorer is not part of the 0.6.1 release) it should probably be removed from each of the example blocks here - https://github.com/mozilla/DeepSpeech under
# Transcribe an audio file

That documentation is for master. The v0.6.1 is okay: https://github.com/mozilla/DeepSpeech/tree/v0.6.1

All 11 comments

@crowlogic what happens if you do deepspeech --version ?

TensorFlow: v1.14.0-21-ge77504a
DeepSpeech: v0.6.1-0-g3df20fe

The flag --scorer is not part of the 0.6.1 release, see for example here. Please refer to the correct version of the documentation, in this case the 0.6.1 version of the documentation, and not master.

If that is the case (The flag --scorer is not part of the 0.6.1 release) it should probably be removed from each of the example blocks here - https://github.com/mozilla/DeepSpeech under
# Transcribe an audio file

If that is the case (The flag --scorer is not part of the 0.6.1 release) it should probably be removed from each of the example blocks here - https://github.com/mozilla/DeepSpeech under
# Transcribe an audio file

That documentation is for master. The v0.6.1 is okay: https://github.com/mozilla/DeepSpeech/tree/v0.6.1

I am having this same issue. I have trained a model. I now what to test it on such an audio file, but get this error. The DeepSpeech I installed is up to date:
TensorFlow: v1.14.0-21-ge77504a
DeepSpeech: v0.6.1-0-g3df20fe
So is the github documentation under "transcribe an audio file" out of date?
https://github.com/mozilla/DeepSpeech

Scorer was introduced in 0.7 you have 0.6.1

Oh I see. Is there a way to install the newest version of deepspeech then? "pip3 install deepspeech" seems to install 0.6.1

Yep, try pip3 install deepspeech==0.7

Thanks! It works if specify

$ pip3 install deepspeech==0.7.0a2

... or rather I'm onto some other bug. Thanks for your help!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

khu834 picture khu834  路  48Comments

shyamalschandra picture shyamalschandra  路  25Comments

stes picture stes  路  154Comments

lissyx picture lissyx  路  33Comments

MatthewWaller picture MatthewWaller  路  74Comments