Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When reading empty vector, do not throw an exception #23

Merged
merged 2 commits into from
Jan 7, 2019

Conversation

xx205
Copy link
Contributor

@xx205 xx205 commented Nov 13, 2018

It is useful when the data is not well prepared (for example in CTC training, speech with an empty label sequence could be detected and properly skipped, instead of throwing an exception) and this behavior is consistent with Kaldi (such as ReadIntegerVector() in io-funcs-inl.h and Read() in kaldi-vector.cc)

It is useful when the data is not well prepared (for example in CTC training, speech with an empty label sequence could be detected and properly skipped, instead of throwing an exception) and this behavior is consistent with Kaldi (such as ReadIntegerVector() in io-funcs-inl.h and Read() in kaldi-vector.cc)
Copy link
Owner

@KarelVesely84 KarelVesely84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@line275 : the 'dtype' of the empty array should be 'float32'. Otherwise it looks good...

@KarelVesely84
Copy link
Owner

Please, update the PR and I will merge it...

_read_vec_flt_binary returns floating point array...
@xx205
Copy link
Contributor Author

xx205 commented Jan 5, 2019

I've fixed it. Thanks.

@KarelVesely84
Copy link
Owner

Okay, merging it. Thank you!

@KarelVesely84 KarelVesely84 merged commit 418ea05 into KarelVesely84:master Jan 7, 2019
xx205 added a commit to xx205/kaldi-io-for-python that referenced this pull request Jan 8, 2019
Merge pull request KarelVesely84#23 from xx205/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants