README.md in yanbi-ml-0.2.3 vs README.md in yanbi-ml-0.2.4

- old
+ new

@@ -199,11 +199,22 @@ #actually, the 'odd' category is especially noisy, so let's make #that two dozen for odd items classifier.set_significance(24, :odd) ``` +Additionally, you can call the scores (for word bags) and scores_raw methods to get a hash of the raw numerical category scores for a document: +```ruby +classifier = Yanbi.default(:even, :odd) + +#...tons of training happens here... + +classifier.scores_raw('one two three') => {:even => -4.18383, :odd => -2.12391} +``` + +Raw numerical scores are useful for those instances where you want to set a threshold for valid classification scores, or implement a minimal difference in scores for a valid classification, or for tie breaking. + ## Persisting After going to all of the trouble of training a classifier on a large corpus, it would be very useful to save it to disk for later use. You can do just that with the appropriately named save and load functions: ```ruby @@ -269,5 +280,6 @@ ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). +