In src/dacy/sentiment/wrapped_models.py lines 142 and 165, a check is made for the Doc extension dacy/emotionally_laden which should just have been emotionally_laden.
The change fixes:
The warning in line 143 is no longer triggered incorrectly.
If a document is classified as "no emotion" by emotionally_laden, doc._.emotion will correctly return "no emotion". See the change in tests (which can also be its own test to verify that behavior if you want).
In
src/dacy/sentiment/wrapped_models.py
lines 142 and 165, a check is made for theDoc
extensiondacy/emotionally_laden
which should just have beenemotionally_laden
.The change fixes:
"no emotion"
byemotionally_laden
,doc._.emotion
will correctly return"no emotion"
. See the change in tests (which can also be its own test to verify that behavior if you want).Cheers!