{"issue":{"created_at":"2011-11-24T16:52:46Z","state":"closed","updated_at":"2011-11-24T17:33:29Z","comments":1,"user":{"gravatar_id":"8db242b70309d8d9de1062a7db53e3d4","id":105397,"url":"https://api.github.com/users/the-experimenters","login":"the-experimenters","avatar_url":"https://secure.gravatar.com/avatar/8db242b70309d8d9de1062a7db53e3d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"In IRB, I get this error.\r\n\r\nruby-1.9.2-head :001 > require 'similarity'\r\n => true \r\n\r\nruby-1.9.2-head :002 > corpus = Corpus.new\r\n => #<Corpus:0x000001013468e8 @terms={}, @documents=[], @term_document_matrix=nil, @similarity_matrix=nil> \r\n\r\nruby-1.9.2-head :003 > doc1 = Document.new(\"Broad powers for hacking inquiry\")\r\nTypeError: can't convert Symbol into Integer\r\n\tfrom /Users/asaleh/.rvm/gems/ruby-1.9.2-head/gems/similarity-0.2.4/lib/similarity/document.rb:5:in `[]'\r\n\tfrom /Users/asaleh/.rvm/gems/ruby-1.9.2-head/gems/similarity-0.2.4/lib/similarity/document.rb:5:in `initialize'\r\n\tfrom (irb):3:in `new'\r\n\tfrom (irb):3\r\n\tfrom /Users/asaleh/.rvm/rubies/ruby-1.9.2-head/bin/irb:16:in `<main>'","assignee":null,"id":2343340,"number":1,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Creating a Document TypeError","closed_at":"2011-11-24T17:33:29Z","html_url":"https://github.com/bbcrd/Similarity/issues/1","milestone":null,"url":"https://api.github.com/repos/bbcrd/Similarity/issues/1"},"action":"closed"}