Closed ibnesayeed closed 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.
train
untrain
nil
word_hash
Not investing much effort in the method_missing driven magic training/untraining behavior as we are undocumenting it and making it deprecated.
method_missing
Makes the return value of
train
anduntrain
methods useful by returning the total training count of the given category. Returnsnil
when training/untraining is skipped due to emptyword_hash
. Related to #130 and #135.