-
Notifications
You must be signed in to change notification settings - Fork 311
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
How is emotional impact of words highlighted? #60
Comments
It's a bit hacky so I wouldn't recommend using it in production. We do the predictions w/o each word and see how much the distribution over predicted emojis change. |
@bfelbo I see. So if I understand it correctly, is this how it's done?
If so, how do you give that score in the screenshot above? The importance reflected by the darker and lighter shades of purple. |
Exactly. The shading is simply an interval over the difference. It was picked manually by trying out a couple of sentences and seeing what seemed to make sense. Note that you can run all the predictions in a single batch, which will make this pretty fast even for long sentences. |
I'm closing this for now as it's not related to the functionality of the repo, but to the demo. Hope my response was helpful! |
It was. Thanks a lot. |
Hi @bfelbo,
On the demo page, there is a section that shows the impact of words on the emoji predictions. How to calculate that?
The text was updated successfully, but these errors were encountered: