Skip to content

Indonesian Stop Words (and a bug fix) - #1

Open
sdsdkkk wants to merge 3 commits into
mathieuripert:masterfrom
sdsdkkk:indonesian_stopwords
Open

Indonesian Stop Words (and a bug fix)#1
sdsdkkk wants to merge 3 commits into
mathieuripert:masterfrom
sdsdkkk:indonesian_stopwords

Conversation

@sdsdkkk

@sdsdkkk sdsdkkk commented May 3, 2015

Copy link
Copy Markdown

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