-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Getting error with some combinations of :contents
No matter if they are short or long ones
This is just an example
corpus = Corpus.new
doc1 = Document.new(:content => "moved")
doc2 = Document.new(:content => "public")
doc3 = Document.new(:content => "moved")
[doc1, doc2, doc3].each { |doc| corpus << doc }
corpus.similar_documents(doc2).each do |doc, similarity|
puts "Similarities between doc #{doc1.id} and doc #{doc.id} is #{similarity}"
endAnd this is the Exception
ArgumentError: comparison of Array with Array failed
from /home/marlon/.rvm/gems/ruby-2.2.0/bundler/gems/Similarity-58c0952c380b/lib/similarity/corpus.rb:62:insort' from /home/marlon/.rvm/gems/ruby-2.2.0/bundler/gems/Similarity-58c0952c380b/lib/similarity/corpus.rb:62:insimilar_documents
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels