Closed horsti371 closed 3 years ago
i see, thanks, I didn't care about windows, but it's better to support for usability. I'll think how to do.
for workaround,
from kaldiio.matio import read_kaldi
with open(r"C:\temp\my.mat") as f:
read_kaldi(f)
Thanks, that works, opening binary archives in binary read mode.
Hi, thank you for your great tool! Unfortunately I have issues reading kaldi matrices / archives from absolute windows pathes, e.g.
The following error occurs:
That happens because the absolute path is splitted at ":", to separate the path and offset in kaldi archives. Of course, in this example, "\temp\my_mat" is no valid integer offset. Changing path using
os.chdir
and using the filename works, but of course this is a bad solution. Is there any workaround for this (or maybe I use it wrong)?