-
Notifications
You must be signed in to change notification settings - Fork 317
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
error in running IGweight.py #62
Comments
I also have this problem |
we need modify the def pass_IG(buckets): in IGweight.py hope it can help others |
godkillok
added a commit
to godkillok/langid.py
that referenced
this issue
Feb 1, 2018
fix the bug for saffsd#62
godkillok
added a commit
to godkillok/langid.py
that referenced
this issue
Feb 1, 2018
fix the bug for saffsd#62
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
I have the following error when I run IGweight.py
computing information gain Traceback (most recent call last): File "/home/motaz/tmp/langid.py/langid/train/IGweight.py", line 246, in <module> ig = compute_IG(bucketlist, features, dist, args.binarize, suffix, args.jobs) File "/home/motaz/tmp/langid.py/langid/train/IGweight.py", line 164, in compute_IG for i, (t, w) in enumerate(pass_IG_out): File "/usr/lib/python2.7/multiprocessing/pool.py", line 668, in next raise value IndexError: only integers, slices (
:), ellipsis (
...), numpy.newaxis (
None) and integer or boolean arrays are valid indices
What do you think the cause of this error? How can I fix it?
Thanks
The text was updated successfully, but these errors were encountered: