Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

.explain raising NotImplementedError error #12

Closed
Naja415 opened this issue Feb 10, 2022 · 5 comments
Closed

.explain raising NotImplementedError error #12

Naja415 opened this issue Feb 10, 2022 · 5 comments
Assignees

Comments

@Naja415
Copy link

Naja415 commented Feb 10, 2022

Hi there!

I get an "NotImplementedError" error when running .explain on a Hisia('string') as you presented on your readme

from hisia import Hisia
negative_joe = Hisia('Det er simpelthen ikke okay :(')
negative_joe.explain

gives:

NotImplementedError: Default 'empty' implementation is invalid for dtype='Sparse[int64, 0]'

.sentiment works just fine 👍

@Naja415 Naja415 changed the title .explain raising error .explain raising NotImplementedError error Feb 10, 2022
@Proteusiq
Copy link
Owner

Proteusiq commented Feb 10, 2022

Thank you for spotting that. I will fix it tomorrow ;) Until then version 0.3.1 ought to still work ;) I hope 🤞

@shahnozaAI
Copy link
Collaborator

shahnozaAI commented Feb 11, 2022

The issue traces to pandas 1.4.0 which was released with the (depreciation) of the index argument to SparseArray construction (GH23089). This affected hisia starting from version 0.3.1.

image

@Proteusiq
Copy link
Owner

It should be fix now @Naja415

@Proteusiq Proteusiq self-assigned this Feb 11, 2022
@Naja415
Copy link
Author

Naja415 commented Feb 11, 2022

It works now. Amazing, thank you!

@Proteusiq
Copy link
Owner

The issue traces to pandas 1.4.0 which was released with the (depreciation) of the index argument to SparseArray construction (GH23089). This affected hisia starting from version 0.3.1.

image

Thank you @shahnozaAI

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants