Skip to content

Incorrect recognition #20

@theusernameisavailable

Description

@theusernameisavailable

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions