Uninitialized constant on class from ruby gem?

If you are using Rails 3 then the gem 'stanfordparser statement needs to be specified in Bundler's Gemfile within the project's root. Otherwise, for Rails 2. X you need a config.

Gem 'stanfordparser statement within config/environment.rb.

If you are using Rails 3 then the gem 'stanfordparser' statement needs to be specified in Bundler's Gemfile within the project's root. Otherwise, for Rails 2. X you need a config.

Gem 'stanfordparser' statement within config/environment.rb.

Thanks I added 'stanfordparser' to config/environment. Rb and I got the following error org.jruby.exceptions. MainExitException: aborted java.util.concurrent.

FutureTask$Sync. InnerGet(FutureTask. Java:222) java.util.concurrent.FutureTask.

Get(FutureTask. Java:83) com.sun.grizzly.jruby. RackGrizzlyAdapter.

Service(RackGrizzlyAdapter. Java:289) etc etc (it kept going for a while) I looked at the glassfish server logs and it says SEVERE: Missing these required gems: stanfordparser ive run rake gems:install, and netbeans says that it is installed, so I don't know what the problem is – Andrew Jun 30 '10 at 20:54.

I was able to solve my problem the following way: instead of using the stanfordparser ruby wrapper (which implements java ruby bridge to connect the java stanford parser to pure ruby), I use jruby to just implement the java from the stanford parser. The code that ended up working: include Java require 'C:\\Stanford-Parser\\Current\\stanford-parser. Jar' require 'rubygems' include_class 'edu.stanford.nlp.parser.lexparser.

LexicalizedParser' lp = LexicalizedParser. New(args) #args is the arguments, not copied here.

I am developing in netbeans using ruby on rails / jruby on a windows 7 machine. My web app works fine otherwise, but when I try to add the parser wrapper it breaks. Which is weird because I've installed the gem using netbeans, I've done rake gems:install and netbeans says the gem is installed.

I've checked in netbeans gems folder and the gem is installed there. So, after a lot of research and head banging, I've decided to simplify things a bit by just trying to use jruby to implement the java classes, now I need to figure out how to import the stanfordparser java classes (there are at least 50), I think I need to compress all the classes into a jar so that jruby can load it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send