Implementing Bayesian classifier in Ruby?

前端 未结 2 1493
生来不讨喜
生来不讨喜 2021-02-04 06:22

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

相关标签:
2条回答
  • 2021-02-04 07:09

    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.

    0 讨论(0)
  • 2021-02-04 07:22

    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.

    0 讨论(0)
提交回复
热议问题