Commit 5fe43711cf37dc11f08813d8875fc2c06be5cb4b

Authored by Mathias Quillot
1 parent 233b7d451b
Exists in master

issue repaired. changelabels was not tested and had some bug. Now, it is working well

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -23,8 +23,8 @@
23 23 splited = key.replace("\n", "").split(",")
24 24 character = splited[1]
25 25 f.write(",".join(splited) + " " + character + "\n")
26   -
27 26  
  27 +
28 28 def char2utt(features: str, outfile: str):
29 29 raise Exception("Not implemented yet")
30 30 pass
... ... @@ -74,8 +74,8 @@
74 74 with open(outfile, "w") as f:
75 75 for key in keys:
76 76 splited = key.split(",")
77   - splited[1] = labels_dict[key]
78   - core.data.write_line(",".join(splited), data_dict[key])
  77 + splited[1] = labels_dict[key][0]
  78 + core.data.write_line(",".join(splited), data_dict[key], out=f)
79 79  
80 80  
81 81 if __name__ == '__main__':