louismullie / treat

Natural language processing framework for Ruby.
Other
1.37k stars 128 forks source link

undefined method `classify' for Treat::Workers::Learners::Classifiers::ID3:Class #109

Open tryceattack opened 9 years ago

tryceattack commented 9 years ago

I'm just running the code in the quick tour at the bottom for classification.

The object clearly contains the method.

d2.sentences[0].methods => [:time, :name_tag, :tag, :category, :tokenize, :parse, :type, :type=, :<<, :method_missing, :invalid_call, :language, :similarity, :distance, :unserialize, :serialize, :visualize, :classify, ...

so yeah...

Edit 1: In addition, the first time i run the code, i get

LoadError: cannot load such file -- graphr

its only after subsequent times that i try to run the classification code that i get the first error.

Edit 2: I tried using the most up to date commit instead of the rubygem, and i get other kinds of errors when running the whole code, so that didn't help.