Skip to content

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

@tryceattack

Description

@tryceattack

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions