Skip to content

Conversation

@sdsdkkk
Copy link

@sdsdkkk sdsdkkk commented May 3, 2015

Thanks for building this gem. I'm using it for my project with Indonesian documents. I added Indonesian stop words to the listed stop words, and I tried to fix a bug I found when using this gem. Please review the changes 🙏

Changes:

  • Added Indonesian stop words, based on Yudi Wibisono's published Indonesian stop words
  • Fixed d.downcase! into d.downcase (without !). as the earlier returned nil and raises a NoMethodError when calling gsub (it is caught by the begin...rescue blocks though)
  • Changed the gsub parameters on line 138 in the file lib/ruby-tf-idf.rb (the original parameters are not suited for my usage, but I want to know what you think about it)
  • Added *.swp in .gitignore for vim users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant