SeanNaren / deepspeech.torch

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

Problem with mapper #63

Closed fanlamda closed 7 years ago

fanlamda commented 7 years ago

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>

SeanNaren commented 7 years ago

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?

fanlamda commented 7 years ago

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