Skip to content

method "emotion" does not work as before #1

@pavlitskiyegor

Description

@pavlitskiyegor

I use Ruby Rails 5.2.2, Ruby 2.5.5, rest-client 2.0, paralleldots 3.2.9
When I request, I get :
{"Bored"=>0.0700809916, "Sad"=>0.3037478671, "Angry"=>0.1977686908, "Happy"=>0.1178046591, "Fear"=>0.1394620256, "Excited"=>0.1711357657}
I do not get what is written in the documentation, like:
{"emotion"=>{"emotion"=>"Happy", "probabilities"=>{"Sarcasm"=>0.0, "Angry"=>0.04090321436524391, "Sad"=>0.0, "Fear"=>0.0, "Bored"=>0.0, "Excited"=>0.07638891041278839, "Happy"=>0.1223890483379364}}}

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