metalcorebear / NRCLex

An affect generator based on TextBlob and the NRC affect lexicon. Note that lexicon license is for research purposes only.
MIT License
63 stars 36 forks source link

affect_frequencies returned with ambiguous keys #7

Closed treize-khushrenada closed 2 years ago

treize-khushrenada commented 3 years ago

testing string: "give me money when in need"

when returning an NRCLex text object with .affect_frequencies::

{'fear': 0.0, 'anger': 0.16666666666666666, 'anticip': 0.0, 'trust': 0.16666666666666666, 'surprise': 0.16666666666666666, 'positive': 0.16666666666666666, 'negative': 0.0, 'sadness': 0.0, 'disgust': 0.0, 'joy': 0.16666666666666666, 'anticipation': 0.16666666666666666}

^ both 'anticip' and 'anticipation' were returned. I saw a recent change in the repo here would likely fix the problem. May I know when the next release date will be?

metalcorebear commented 2 years ago

Issue has been resolved.