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")
The text was updated successfully, but these errors were encountered:
@cheeyeo the readme might be reflecting current master which has (in the last few days) undergone some fairly significant changes. Please use the master branch for those or find the readme at the version you're running.
Hi
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?
The text was updated successfully, but these errors were encountered: