stuff-classifier icon indicating copy to clipboard operation
stuff-classifier copied to clipboard

nil error while classifying

Open will3216 opened this issue 9 years ago • 1 comments

NoMethodError: undefined method map' for nil:NilClass from /Users/william/.rvm/gems/ruby-1.9.3-p547/gems/stuff-classifier-0.5/lib/stuff-classifier/bayes.rb:13:indoc_prob'

will3216 avatar Apr 24 '15 18:04 will3216

It seems the content you want to classify is empty string (i.e. ""). you should tackle this case(remove them for example)

tigerneil avatar Jul 17 '15 02:07 tigerneil