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
TypeError when nothing is found on in a document #8
Comments
Are you running the latest version of the toolkit? It seems the same issue as #3 , which I thought I had fixed. |
I am running v0.2.9 (installed via pip a few days ago) |
My bad, it seemed the last fix was not included in the PyPI package. It should now be fixed, just do |
Hi thanks!
|
OK, it should now be fixed. I had tested for the absence of "spans" in a document, but apparently not for documents with spans assigned to empty lists -- sorry about that. Let me know if you still experience problems! |
Thanks! it works now! |
Hi!
I'm getting an exception from fit_and_aggregate.
TypeError: Cannot cast array data from dtype('float64') to dtype('int64') according to the rule 'safe'.
The exception is from line 227 in
aggregation.py
,np.apply_along_axis(...)
This seems to happen when all of my labeling functions return empty on one of the docs so the DataFrame is empty.
The text was updated successfully, but these errors were encountered: