Method: NBayes::Data#new_category
- Defined in:
- lib/nbayes.rb
#new_category ⇒ Object
163 164 165 166 167 168 169 |
# File 'lib/nbayes.rb', line 163 def new_category { :tokens => Hash.new(0), # holds freq counts :total_tokens => 0, :examples => 0 } end |