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

Update to spacytextblob v5 #9

Open
bradley-erickson opened this issue Dec 19, 2024 · 0 comments
Open

Update to spacytextblob v5 #9

bradley-erickson opened this issue Dec 19, 2024 · 0 comments

Comments

@bradley-erickson
Copy link
Collaborator

There are some breaking changes in spacytextblob==5.0.0 that we need to address. When running the positive or negative tone attributes, we get a not very useful error [E046] Can't retrieve unregistered extension attribute 'assessments'. Did you forget to call the set_extension method?. We do not get this error on previous versions.

This is likely due to the changes introduced in v5. See the comment included in v5's release below

Removed support for accessing ..polarity, ..sentiment, ..subjectivity, and ..assessments. Now, only the ..blob attribute is exposed. All other textblob attributes should be access through it. For example: ..blob.polarity, ..blob.sentiment, ..blob.subjectivity, and ._.blob.sentiment_assessments.assessments. This simplifies the code base and makes it easier to maintain. Lastly, this means that the config option {"blob_only": bool} was removed.

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

1 participant