8000 GitHub - EdwinRozario/sad_panda: A ruby gem for language processing and sentiment analysis
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

EdwinRozario/sad_panda

 
 

Repository files navigation

SadPanda

sad_panda is a gem featuring tools for sentiment analysis of natural language: positivity/negativity and emotion classification.

Emotion Range: "anger", "disgust", "joy", "surprise", "fear", "sadness"

Polarity Range: 0 to 10

Installation

Add this line to your application's Gemfile:

gem 'sad_panda'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sad_panda

Usage

	require 'sad_panda'

	SadPanda.emotion("my lobster collection makes me happy!")
	=> "joy"



	SadPanda.polarity("I love cactuses!")
	=> 10.0

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A ruby gem for language processing and sentiment analysis

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%
0