Commit 4333e05c50ad35a7e5650ace81e734d23631c154

Authored by quillotm
Exists in master

Merge branch 'master' of gitlia.univ-avignon.fr:mathias.quillot/volia

Showing 1 changed file 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__':