ruby-tf-idf icon indicating copy to clipboard operation
ruby-tf-idf copied to clipboard

Problems with downcased corpus

Open Redithion opened this issue 10 years ago • 2 comments

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

Redithion avatar Sep 01 '15 13:09 Redithion

I submitted a pull request for this issue.

Redithion avatar Sep 01 '15 13:09 Redithion

For anyone with this issue, I forked the project and fixed that. Here is the repository: https://github.com/Redithion/ruby-tf-idf

Redithion avatar Jul 23 '17 03:07 Redithion