You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a pretty large data set and am having an issue with line 758 of text.py (CountVectorizer code):
indptr.append(len(j_indices))
In my case, the length of j_indices is larger than the maximum signed int. indptr is an int array.
I tried making indptr a long array but that leads to other bigger memory issues.
This is the traceback. A minimal example that reproduces this would likely run into 10s of GB. From what I can tell this issue is triggered when j_indices grows to a size larger than 2^31-1. j_indices appears to grow to a length equal to the number of nonzero entries in the feature matrix.
Activity
lesteve commentedon Jan 19, 2016
Can you post the full traceback ?
Also it would be great if you could put together a stand-alone example that reproduces the problem.
hidayata commentedon Jan 19, 2016
This is the traceback. A minimal example that reproduces this would likely run into 10s of GB. From what I can tell this issue is triggered when
j_indicesgrows to a size larger than 2^31-1.j_indicesappears to grow to a length equal to the number of nonzero entries in the feature matrix.v1shwa commentedon Nov 6, 2017
Hi, I'm still getting this error in version 0.19.1. Any work around?
jnothman commentedon Nov 6, 2017
You can try patching your copy of the library with #9147
v1shwa commentedon Nov 6, 2017
Wow! That was quick. Thanks @jnothman , I will give it a try.