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

Return the startus of the training/untraining when run #137

Closed ibnesayeed closed 7 years ago

ibnesayeed commented 7 years ago

Makes the return value of train and untrain methods useful by returning the total training count of the given category. Returns nil when training/untraining is skipped due to empty word_hash. Related to #130 and #135.

ibnesayeed commented 7 years ago

Not investing much effort in the method_missing driven magic training/untraining behavior as we are undocumenting it and making it deprecated.