You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here c ranges from 0 to len(prob_list), but vocabulary[28] causes index out of range.
To use this decoder, one have to make the vocabulary a dict indexed from 1 instead of a list indexed from 0, in spite of that the doc suggests vocabulary to be a list.
:param vocabulary: Vocabulary list.
:type vocabulary: list
This wouldn't happen because we in fact have enforced blank_id equal to len(vocabulary). And blank_id shouldn't be passed as an argument to the decoder, we have fixed that in the C++ decoders and will fix the python version very soon.
models/deep_speech_2/model_utils/decoder.py
Line 87 in 8b5c739
If vocabulary dosen't contain blank, we have:
Then at line 135,
here
c
ranges from 0 tolen(prob_list)
, butvocabulary[28]
causes index out of range.To use this decoder, one have to make the vocabulary a dict indexed from 1 instead of a list indexed from 0, in spite of that the doc suggests
vocabulary
to be a list.This is really confusing.
@xinghai-sun
@kuke
The text was updated successfully, but these errors were encountered: