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

Emoji Support #24

Closed
thisandagain opened this issue Dec 21, 2015 · 5 comments
Closed

Emoji Support #24

thisandagain opened this issue Dec 21, 2015 · 5 comments

Comments

@thisandagain
Copy link
Owner

thisandagain commented Dec 21, 2015

The AFINN wordlist is missing a fairly critical piece of contemporary discourse: the emoji. I'd like to add emoji support to sentiment. Major questions:

  • Do any approaches to evaluating the sentiment of emoji exist?
  • How do we tokenize emoji?
  • Should this be an "opt-in" feature?
  • How do we determine the accuracy of such an implementation?
@craigwinstanley
Copy link

craigwinstanley commented Nov 10, 2016

Hi

Are the emojis part of the default wordlist or would these need to be added in?
I tried to manually append via code as i don't want to edit the wordlist directly using the following but it doesn't seem to take into account the smiley face ":)"

var analysis = sentiment(post.message, {
                            ':)': 5,
                            ':(': -3,
                            'xxx': 3,
                        });

The 'xxx' works correctly though so at first i thought it maybe because the word starts with punctuation and may be getting ignored?

Thanks any help would be greatly appreciated

Thanks

@thisandagain
Copy link
Owner Author

Good reference paper on the subject:
http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0144296

@dcworldwide
Copy link

Really good read, excited about the possibilities here.

@thisandagain
Copy link
Owner Author

Resolved in #74. Pending release.

@thisandagain
Copy link
Owner Author

thisandagain commented Apr 1, 2017

Released in sentiment@4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants