Closed el-grudge closed 3 years ago
It seems to be related to how the keys of the frequencies are handled:
First, the anticip
key is always present, since it is in the affect_percent
dict. But it is never used.
https://github.com/metalcorebear/NRCLex/blob/5d66076ad897a2c9406d6c2a3b3d7b7cb3b25644/nrclex.py#L26
The anticipation
key is added instead through the frequencies collection.
The key is added here: https://github.com/metalcorebear/NRCLex/blob/5d66076ad897a2c9406d6c2a3b3d7b7cb3b25644/nrclex.py#L23-L24
And it is added to the affect_frequencies
here
https://github.com/metalcorebear/NRCLex/blob/5d66076ad897a2c9406d6c2a3b3d7b7cb3b25644/nrclex.py#L28-L29
Replacing the anticip
key by anticipation
should fix it.
Hi,
When using NRCLex, sometimes the affect frequencies shows the anticipation emotion (not anticip), but not every time.
Here is an example:
Any explanation for why this might be? Is there a way to get the same returns every time?