You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried running ClassifierReborn::LSI from the example in the README and when invoking the 'classify_with_score' and 'scored_categories' methods, it returns undefined? Am I calling it wrong?
lsi = ClassifierReborn::LSI.new
strings = [ ["This text deals with dogs. Dogs.", "a"],
["This text involves dogs too. Dogs!", "a"],
["This text revolves around cats. Cats.", "b"],
["This text also involves cats. Cats!", "b"],
["This text involves birds. Birds.", "c"]]
strings.each {|x| lsi.add_item x.first, x.last}
# NoMethodError
scored_categories = lsi.scored_categories("dog bird cat")
# NoMethodError
lsi.classify_with_score("test")