louismullie / treat

Natural language processing framework for Ruby.
Other
1.36k stars 128 forks source link

Don't know how to build task 'treat:install' when installing with Bundle #72

Closed aaroncraigongithub closed 10 years ago

aaroncraigongithub commented 10 years ago

After adding gem 'treat' to my Gemfile and running bundle, according to the documentation I should be able to run a rake task to install a language.

$ rake treat:install[english]

However, no such task exists. Am I missing something?

louismullie commented 10 years ago

Hey Aaron,

The rake-style tasks are meant to be run directly from the gem folder, and are there mostly for development purposes. In your case, you should use (either in a custom rake task in your project, or directly from IRB):

require 'treat'
Treat::Core::Installer.install 'english'

Let me know if you have any further issues using the gem.

aaroncraigongithub commented 10 years ago

Yes, for some reason when you install this gem with Bundler, the Rakefile is not installed, so you can't run the task directly from treat's dir.

No worries, just installing off the console. Might be worth adding a note in the docs for people that use this gem under Rails.

Very interested in playing with treat, thanks!