SeanNaren / deepspeech.torch

Speech Recognition using DeepSpeech2 network and the CTC activation function.
MIT License
260 stars 73 forks source link

CER calculation obviously wrong #101

Open zhouyong64 opened 5 years ago

zhouyong64 commented 5 years ago

The CER calculation seems wrong. For example, with target string 'a' and prediction string 'b', I think CER should be 100%. Instead, current code outputs 0.

    func = SequenceError()
local cer = func:calculateCER('a','b')  
print('cer',cer)