Code Monkey home page Code Monkey logo

sentimentalizer's Introduction

sentimentalizer's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar dglunz avatar jwarzech avatar malavbhavsar avatar neoneye avatar railsfactory-mars avatar voyera avatar ybur-yug avatar zewelor 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

sentimentalizer's Issues

`gem install sentimentalizer` not working

Not an issue, but more of a convenience suggestion:

It would be cool to install sentimentalizer with the command gem install sentimentalizer.

Currently this only works if you add the gem to your Gemfile and then run bundle, as per instructions.

readme.md should mention Sentimentalizer.setup

I followed the readme, but couldn't get Sentimentalizer working.

I quickly realized that I first had to invoke .setup

irb> Sentimentalizer.analyze("sentimentalizer is awesome")
NoMethodError: undefined method `analyse' for nil:NilClass
    from /very/long/path/to/sentimentalizer.rb:15:in `analyze'
    from (irb):9
    from /another/very/long/path/irb:11:in `<main>'
irb> Sentimentalizer.setup
Training analyser with +ve sentiment
+ve sentiment training complete
Training analyser with -ve sentiment
-ve sentiment training complete
 => nil 
irb> Sentimentalizer.analyze("sentimentalizer is awesome")

Perhaps mention .setup is necessary.

Or perhaps do lazy initialization within .analyze, so .setup is invoked when needed.

Cool piece of code. Great job.

Undefined method `analyse` when running vanilla after install on a string

bobby@devbox:~/code/reddit_comment_dataset_analyses$ irb
2.2.1 :001 > require 'sentimentalizer'
 => true 
2.2.1 :002 > Sentimentalizer.analyze('I love dogs')
NoMethodError: undefined method `analyse' for nil:NilClass
    from /home/bobby/.rvm/gems/ruby-2.2.1/gems/sentimentalizer-0.2.2/lib/sentimentalizer.rb:15:in `analyze'
    from (irb):2
    from /home/bobby/.rvm/rubies/ruby-2.2.1/bin/irb:11:in `<main>'

If you have an immediate idea of what could be causing this it doesn't seem too bad to dive into and I'd gladly PR, but I'm a bit busy the rest of the night.

I'm on Ruby 2.2.1 and Ubuntu 15.04.

Text Language

Looking at the text the gem uses for training, it seems to me it supports several languages but I would like to have official confirmation from you and the list of supported languages. Thank you for this awesome gem by the way.

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.