Skip to content

Instantly share code, notes, and snippets.

@mureithi254
Created February 22, 2017 09:41
Show Gist options
  • Save mureithi254/8e96de2b52c5fd65fdda25a0e8cea5c7 to your computer and use it in GitHub Desktop.
Save mureithi254/8e96de2b52c5fd65fdda25a0e8cea5c7 to your computer and use it in GitHub Desktop.
classifier reborn cannot handle this file properly and needs a vector
Input: '' is entirely stopwords or words with 2 or fewer characters. Classifier-Reborn cannot handle this document properly.
/home/anonymous/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/matrix.rb:2088:in `normalize': Zero vectors can not be normalized (Vector::ZeroVectorError)
from /home/anonymous/.rvm/gems/ruby-2.3.3/gems/classifier-reborn-2.1.0/lib/classifier-reborn/lsi/content_node.rb:95:in `raw_vector_with'
from /home/anonymous/.rvm/gems/ruby-2.3.3/gems/classifier-reborn-2.1.0/lib/classifier-reborn/lsi.rb:326:in `node_for_content'
from /home/anonymous/.rvm/gems/ruby-2.3.3/gems/classifier-reborn-2.1.0/lib/classifier-reborn/lsi.rb:186:in `proximity_array_for_content'
from /home/anonymous/.rvm/gems/ruby-2.3.3/gems/classifier-reborn-2.1.0/lib/classifier-reborn/lsi.rb:281:in `scored_categories'
from /home/anonymous/.rvm/gems/ruby-2.3.3/gems/classifier-reborn-2.1.0/lib/classifier-reborn/lsi.rb:267:in `classify'
from Night-crawler.rb:42:in `block in comparative'
from Night-crawler.rb:41:in `each'
from Night-crawler.rb:41:in `comparative'
from Night-crawler.rb:53:in `<main>'
@mureithi254
Copy link
Author

This gist is attached to the NIght-crawler.o repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment