Code Monkey home page Code Monkey logo

sentimental's People

Contributors

alebian avatar baxter2 avatar bechirsegni avatar charlieegan3 avatar colstrom avatar davidrichey avatar jemminger avatar jmccartie avatar nicollet avatar seanslerner avatar theverything avatar zaratan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sentimental's Issues

Change to the scoring system!

why dont we take an average of all the scores of the tokens in the sentence as score? its currently calculated as the sum only! if we take average , it will fall between -1 to 1 right?

size of text substantially increases sentiment range

I've noticed that the size of the text evaluated substantially increases the range of the sentiment scores.

Single sentences will result in a score between -1 and 1, however, multi-line paragraphs can create scores in excess of 10 and -10.

For example, the Gettysburg address produces a score of -4.7, and the latest blog post from positivityblog gets a score of 4.8.

I can't share the texts that I'm seeing scores of 11 and 12 from, unfortunately.

Is this expected behavior? If so, how should I go about normalizing the score so I can compare it to other scores in between -1 and 1?

Incorrect recognition

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.