I would like to implement a simple Bayesian classification system to do rudimentary sentiment analysis on short messages. Practical suggestions for implementing in Ruby would be welcome. Suggestions for other approaches besides Bayes would also be welcome.
            Asked
            
        
        
            Active
            
        
            Viewed 4,300 times
        
    2 Answers
13
            Ilya Grigorik has a nice answer to this problem over on this blog post on Bayesian Classifiers
Additionally, you may wish to take a look at the ai4r rubygem for some alternates to Bayesian Classifiers.
ID3 is a good choice because it gives a decision tree that is "understandable" to even someone without any real understanding of machine learning techniques.
        Cuervo's Laugh
        
- 206
 - 3
 - 8
 
- 
                    2I just checked on github and the new version of the ai4r gem has a naive bayes classifier now. – Cuervo's Laugh Jul 06 '09 at 13:09
 
3
            
            
        I've just released the nbayes gem which is a full-featured, robust, and high performance Naive Bayes classifier in Ruby. It makes tasks like sentiment analysis simple. Please read the tutorial for more info.
        jman
        
- 392
 - 2
 - 7