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

IndexError: cannot do a non-empty take from an empty axes. #4

Open
FengXuas opened this issue Feb 19, 2021 · 1 comment
Open

IndexError: cannot do a non-empty take from an empty axes. #4

FengXuas opened this issue Feb 19, 2021 · 1 comment

Comments

@FengXuas
Copy link

I have a question. In the filters, such as ReverseWordRatioBucket.py, if self.scores is [], the program will wrong,
image

self.scores It will be assigned in Tu function. How can I fix the problem?
Thank you!

@masoudjs
Copy link
Collaborator

Hello,

Can you please give me more information to recreate the error?
The "self.scores" should not be empty in that step.
In the initialize() method, is "self.num_of_scans" equal to 1?

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

No branches or pull requests

2 participants