Training DeepSpeech for Mandarin

I am trying to train a Mandarin DeepSpeech model using this and this tutorial.

To train the model I need 3 csv files: train, test, dev. How do I generate those? I am using thchs30 dataset

Thanks

Here is your work !!
You need to create a program to build csv, about your own files…
See deepspeech files, you ll have some help

Thanks. I should create a shell script or python file for the same right?
All the wav files have a corresponding .trn file. How would I get the text from that?