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

inflected words and adjectives in other languages. #155

Open
pomarc opened this issue Sep 27, 2018 · 0 comments
Open

inflected words and adjectives in other languages. #155

pomarc opened this issue Sep 27, 2018 · 0 comments
Labels

Comments

@pomarc
Copy link

pomarc commented Sep 27, 2018

This code to see if a token has a corresponding AFINN label:
if (!labels.hasOwnProperty(obj)) continue;

in many non English language does not work for inflected words.

In English you say: "the cat is stupid" and "the cats are stupid" (btw cats are smart! :D )

In French you say: "le chat est stupide" and "les chats sont stupides".
The stemmed word "stupid" is flected into stupide and stupides.

if we use "stupid" in the labels, the scoring is never done. Using all the possible inflected words is tedious and long.

may be you could change the line of code to take into account stemmed (or truncated) words?

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

No branches or pull requests

2 participants