All Projects → malavbhavsar → Sentimentalizer

malavbhavsar / Sentimentalizer

Licence: mit
Sentiment analysis with Machine Learning

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Sentimentalizer

Timber Ruby
🌲 Great Ruby logging made easy.
Stars: ✭ 154 (-4.94%)
Mutual labels:  rails
X Editable Rails
Edit fields easily with X-Editable helper
Stars: ✭ 159 (-1.85%)
Mutual labels:  rails
Rubanok
Parameters-based transformation DSL
Stars: ✭ 161 (-0.62%)
Mutual labels:  rails
Snpr
The sources of the openSNP website
Stars: ✭ 155 (-4.32%)
Mutual labels:  rails
Amazon Product Recommender System
Sentiment analysis on Amazon Review Dataset available at http://snap.stanford.edu/data/web-Amazon.html
Stars: ✭ 158 (-2.47%)
Mutual labels:  sentiment-analysis
Api guard
JWT authentication solution for Rails APIs
Stars: ✭ 159 (-1.85%)
Mutual labels:  rails
Dotfiles
📍 My dotfiles for macOS using Fish/Zsh, Neovim, and Tmux
Stars: ✭ 151 (-6.79%)
Mutual labels:  rails
Authie
👮‍♂️ Improve user session security in Ruby on Rails applications with database session storage
Stars: ✭ 161 (-0.62%)
Mutual labels:  rails
Draftsman
Ruby gem that lets you create draft versions of your database records.
Stars: ✭ 159 (-1.85%)
Mutual labels:  rails
Yaaf
Easing the form object pattern in Rails applications
Stars: ✭ 161 (-0.62%)
Mutual labels:  rails
Responders
A set of Rails responders to dry up your application
Stars: ✭ 1,925 (+1088.27%)
Mutual labels:  rails
Paperclip Meta
Adds width, height, and size to paperclip images.
Stars: ✭ 157 (-3.09%)
Mutual labels:  rails
Graphql Rails Blog
Blog App built with Rails 5, React and GraphQL
Stars: ✭ 160 (-1.23%)
Mutual labels:  rails
Weg Li
📸 📝 ✊ weg-li: 1, 2, 3 - Macht die Bahn frei!
Stars: ✭ 156 (-3.7%)
Mutual labels:  rails
Hey Jetson
Deep Learning based Automatic Speech Recognition with attention for the Nvidia Jetson.
Stars: ✭ 161 (-0.62%)
Mutual labels:  sentiment-analysis
Ordinare
Ordinare sorts gems in your Gemfile alphabetically
Stars: ✭ 153 (-5.56%)
Mutual labels:  rails
Nlp bahasa resources
A Curated List of Dataset and Usable Library Resources for NLP in Bahasa Indonesia
Stars: ✭ 158 (-2.47%)
Mutual labels:  sentiment-analysis
Rails Base
Skeleton for new Rails based projects.
Stars: ✭ 161 (-0.62%)
Mutual labels:  rails
Ruby Bookmarks
Ruby and Ruby on Rails bookmarks collection
Stars: ✭ 1,972 (+1117.28%)
Mutual labels:  rails
Expertiza
Expertiza is a web application through which students can submit and peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation.
Stars: ✭ 160 (-1.23%)
Mutual labels:  rails

sentimentalizer

Dependabot Status Build Status Code Climate

Inspired by Sentan node-sentiment.

This gem can be used separately or integrated with rails app.

Instructions for Rails use

  1. Install gem using bundler gem "sentimentalizer"

  2. Run rails g sentimentalizer. This will generate an initializer file with after_initialize hook for rails. It's basically training a model to use in the application. It will run everytime you start server or run any rake commands, would love some input on this.

  3. Now, you can run following after require "sentimentalizer"

Sentimentalizer.analyze('message or tweet or status')
# or for json output
Sentimentalizer.analyze('message or tweet or status', true)

You will get output like this

Sentimentalizer.analyze('i am so happy')
=> {'text' => 'i am so happy', 'probability' => '0.937', 'sentiment' => ':)' }
Sentimentalizer.analyze('i am so happy', true)
=> "{\"text\":\"i am so happy\",\"probability\":\"0.937\",\"sentiment\":\":)\"}"

Instructions for Vanilla Ruby use

  1. Install gem using bundler gem "sentimentalizer"

  2. Either fire up irb, or require it in your project with require 'sentimentalizer'

  3. Now, you need to train the engine in order to use it

require "sentimentalizer"

Sentimentalizer.setup

# or, wrap it in a class so setup can be automatic
class Analyzer
  def initialize
    Sentimentalizer.setup
  end
  
  def process(phrase)
    Sentimentalizer.analyze phrase
  end
end

# or for json output
Sentimentalizer.analyze('message or tweet or status', true)

And now you will get output like this

analyzer = Analyzer.new
analyzer.process('i am so happy')
=> {'text' => 'i am so happy', 'probability' => '0.937', 'sentiment' => ':)' }
analyzer.process('i am so happy', true)
=> "{\"text\":\"i am so happy\",\"probability\":\"0.937\",\"sentiment\":\":)\"}"

Contributing to sentimentalizer

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright (c) 2018 malavbhavsar. See LICENSE.txt for further details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].