RedisBayes は私には良さそうです:
http://pypi.python.org/pypi/redisbayes/0.1.3
私の経験では、Redis はスタックへのすばらしい追加機能であり、MySQL、PostgreSQL、またはその他の RDBMS と比較して非常に速い速度でデータを処理するのに役立ちます。
import redis, redisbayes
rb = redisbayes.RedisBayes(redis=redis.Redis())
rb.train('good', 'sunshine drugs love sex lobster sloth')
rb.train('bad', 'fear death horror government zombie god')
assert rb.classify('sloths are so cute i love them') == 'good'
assert rb.classify('i fear god and love the government') == 'bad'
print rb.score('i fear god and love the government')
rb.untrain('good', 'sunshine drugs love sex lobster sloth')
rb.untrain('bad', 'fear death horror government zombie god')
それが少し役立つことを願っています。