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

bundler/setup error - Mac OS 10.13.6, ruby 2.3.7p456 #1

Open
orr721 opened this issue Dec 2, 2018 · 3 comments
Open

bundler/setup error - Mac OS 10.13.6, ruby 2.3.7p456 #1

orr721 opened this issue Dec 2, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@orr721
Copy link

orr721 commented Dec 2, 2018

hi,

wanted to try it out, but i'm not able to run your demo program (I have put it in sm.rb file):

ruby sm.rb 
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Library/Ruby/Gems/2.3.0/gems/porter2stemmer-1.0.1/lib/porter2stemmer.rb:2:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Library/Ruby/Gems/2.3.0/gems/smalltext-0.1.0/lib/smalltext.rb:1:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:39:in `require'
	from sm.rb:1:in `<main>'

gem install smalltext completed successfully.

ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17]

any ideas what is wrong?

hey, and while I am at it, can you please consider support for using other tokenizers as well? I myself prefer the pragmatic_tokenizer as it supports many languages, has stopwords, cleanup methods, etc.. thank you.

@arjunmenon
Copy link
Owner

Hey
This looks like a missing bundler issue.

Do you have bundler installed?
What does gem which bundler say? If it is empty, please install bundler, gem i bundler

And do you have multiple versions of ruby installed in your system? If thats the case I highly recommend using a version manager like rbenv.

@orr721
Copy link
Author

orr721 commented Dec 2, 2018

yep, that was the issue, gem install bundler fixed the error and the demo runs fine. bundler isn't listed as one of the run-time dependencies though..

any thoughts about the tokenizer question? thx.

@arjunmenon
Copy link
Owner

Bundler is generally part of a standard Ruby setup.

While building this library I had evaluated many tokenizers, including pragmatic_tokenizer. What I remember is it could not split some types of sentences the way I was looking for but the tokenizer gem, which I have included, did.

The preprocessor for Smalltext can accept your list of stopwords, I simply have not exposed that config yet. As far as other languages are concerned I can surely include an option to have the preprocessor consider that. Give me some time.

@arjunmenon arjunmenon added the enhancement New feature or request label Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants