jekyll / classifier-reborn

A general classifier module to allow Bayesian and other types of classifications. A fork of cardmagic/classifier.
https://jekyll.github.io/classifier-reborn/
GNU Lesser General Public License v2.1
554 stars 110 forks source link

Require bayes_redis_backend #157

Closed AlexDWu closed 7 years ago

AlexDWu commented 7 years ago

require_relative 'backends/bayes_redis_backend' was removed from bayes.rb because of https://github.com/jekyll/classifier-reborn/pull/146, but having to manually require 'classifier-reborn/backends/bayes_redis_backend' is kind of annoying.

Putting require 'redis' inside BayesRedisBackend#initialize is a solution, but it's kind of gross.

Maybe there is a better one?

Ch4s3 commented 7 years ago

seems reasonable to me.