print average text length, fix for Nancy preprocessor

This commit is contained in:
Eren Golge
2018-11-20 12:54:33 +01:00
parent b8ca19fd2c
commit 660f8c7b66
2 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -55,6 +55,6 @@ def nancy(root_path, meta_file):
id = line.split()[1]
text = line[line.find('"')+1:line.rfind('"')-1]
wav_file = root_path + 'wavn/' + id + '.wav'
items.append(text, wav_file)
items.append([text, wav_file])
random.shuffle(items)
return items