louismullie / treat

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

Trying to tag... #13

Closed bingomanatee closed 12 years ago

bingomanatee commented 12 years ago

LoadError: cannot load such file -- engtagger from /home/dave/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/dave/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/lexicalizers/taggers/lingua.rb:18:in block in <class:Lingua>' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/kernel.rb:25:incall' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/kernel.rb:25:in silence_warnings' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/lexicalizers/taggers/lingua.rb:18:inclass:Lingua' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/lexicalizers/taggers/lingua.rb:15:in <top (required)>' from /home/dave/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /home/dave/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/groupable.rb:14:inconst_missing' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/groupable.rb:73:in const_get' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/groupable.rb:73:inconst_get' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/entities/abilities/delegatable.rb:65:in call_worker' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/entities/abilities/delegatable.rb:39:inblock (2 levels) in add_workers' from /home/dave/.rvm/gems/ruby-1.9.3-p194/gems/treat-1.0.6/lib/treat/proxies.rb:14:in `method_missing' from (irb):21

Is there another step towards installation tha twould include the tagger?

louismullie commented 12 years ago

You need to install the engtagger gem! Although I don't have a 1.9.3 install handy, I remember having some issues with that gem on 1.9.3, though. So if installing the gem doesn't work, I suggest trying another tagger (:brill or :stanford).

p = Phrase 'A phrase to tag'
p.do :tokenize, :tag => :brill
puts p.tokens.map { |t| t.tag }
# DT NN TO VB
louismullie commented 12 years ago

Any luck?

bingomanatee commented 12 years ago

Yes - thanks - I have jagged off this part of the project but will prob. circle back soon.

On Fri, Jun 15, 2012 at 11:24 AM, Louis Mullie reply@reply.github.com wrote:

Any luck?


Reply to this email directly or view it on GitHub: https://github.com/louismullie/treat/issues/13#issuecomment-6363239

louismullie commented 12 years ago

Coolios!