Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indonesian Stop Words (and a bug fix) #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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