nttcslab-sp / kaldiio

A pure python module for reading and writing kaldi ark files
Other
249 stars 35 forks source link

ValueError: Unexpected format <Nnet3Eg> #54

Closed FredZZD closed 3 years ago

FredZZD commented 3 years ago

it's a good package that helps me a lot, but when I use it to load scp files (exp/xvector_nnet/egs/egs.1.scp for example) that kaldi prepared in egs/sre16 scripts, an ValueError occured, here's the traceback Traceback (most recent call last): File "", line 1, in File "/home/torch/lib/python3.8/site-packages/kaldiio-2.17.0-py3.8.egg/kaldiio/matio.py", line 339, in load_ark File "/home/torch/lib/python3.8/site-packages/kaldiio-2.17.0-py3.8.egg/kaldiio/matio.py", line 429, in read_kaldi File "/home/torch/lib/python3.8/site-packages/kaldiio-2.17.0-py3.8.egg/kaldiio/matio.py", line 518, in read_matrix_or_vector ValueError: Unexpected format: "". Now FM, FV, DM, DV, CM, CM2, CM3 are supported. I suspect that is just an alias for the supported format, but have no idea how to do solve it. Is there any solutions? Thanks a lot.

kamo-naoyuki commented 3 years ago

egs format is not supported.

FredZZD commented 3 years ago

well, thanks again. i just found it in Readme, sorry for disturbing you.

kamo-naoyuki commented 3 years ago

https://github.com/funcwj/kaldi-python-io

This tool supports egs format.