SeanNaren / deepspeech.torch

Speech Recognition using DeepSpeech2 network and the CTC activation function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with mapper

fanlamda opened this issue · comments

I changed a few things in mapper.lua to adapt to Chinese study, but it comes error like
/home/fanl/torch/install/share/lua/5.1/threads/threads.lua:183: [thread 1 callback] ./Mapper.lua:23: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
[C]: in function 'lower'
./Mapper.lua:23: in function 'encodeString'
./Loader.lua:92: in function <./Loader.lua:62>

So it seems like the line going into the mapper is nil for some odd reason, is there any way that a nil could've been inserted into the LMDB, or the label is nil?

There was a mistake in label when I dealt with the label. Now it works