Implementing Bayesian classifier in Ruby?

一世执手 提交于 2019-12-03 08:56:26

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/1080732/implementing-bayesian-classifier-in-ruby

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!