ruby-tf-idf
ruby-tf-idf copied to clipboard
Problems with downcased corpus
Hi there, I have an issue with the gem, when you give a corpus already downcased it fails because downcase! returns nil. Here is the line: https://github.com/mathieuripert/ruby-tf-idf/blob/master/lib/ruby-tf-idf.rb#L100 Maybe you can just use "downcase" instead of "downcase!". Regards
I submitted a pull request for this issue.
For anyone with this issue, I forked the project and fixed that. Here is the repository: https://github.com/Redithion/ruby-tf-idf