SeanNaren / deepspeech.torch

Speech Recognition using DeepSpeech2 network and the CTC activation function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CER calculation obviously wrong

zhouyong64 opened this issue · comments

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)