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

Incorrect recognition #20

Open
theusernameisavailable opened this issue Mar 22, 2018 · 0 comments
Open

Incorrect recognition #20

theusernameisavailable opened this issue Mar 22, 2018 · 0 comments

Comments

@theusernameisavailable
Copy link

Phrase not bad usually has neutral or even positive value. But gem doesn't think so 👎

=> analyzer = Sentimental.new
=> #<Sentimental:0x0055b27fc84830 @ngrams=1, @word_scores={}, @influencers={}, @threshold=0, @neutral_regexps=[]>
irb(main):064:0> analyzer.load_defaults
=> {"extremely"=>1.5, "really"=>1.25, "pretty"=>1.01}
irb(main):065:0> analyzer.threshold = 0.1
=> 0.1
irb(main):066:0> analyzer.score("not bad")
=> -1.3088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant