Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail From: Luiz Nogara Newsgroups: comp.lang.ruby Subject: Re: Stanfordparser (or rjb) error on Snow Leopard Date: Sat, 30 Apr 2011 11:11:09 -0500 Organization: Service de news de lacave.net Lines: 31 Message-ID: References: <076209b0fdedcc03438395fce74d2dc8@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1304179894 60597 65.111.164.187 (30 Apr 2011 16:11:34 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Sat, 30 Apr 2011 16:11:34 +0000 (UTC) In-Reply-To: <076209b0fdedcc03438395fce74d2dc8@ruby-forum.com> X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 382446 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3741 I also followed the instructions of the blog post you mentioned, and also got the same results. The gem I'm using is the "stanfordparser" v2.2.0 (https://github.com/jcwilk/stanfordparser) From the changelog at the Stanford Parser website, I figured the last version (1.6.6) changed APIs that the ruby wrapper does not understand. --- Version 1.6.6 2011-04-20 Internal code and API changes (ArrayLists rather than Sentence; use of CoreLabel objects) to match tagger and CoreNLP. --- So, I tried the previous version, which is available at. http://nlp.stanford.edu/software/stanford-parser-2010-11-30.tgz I got it to work with this version, but I could not make the simple test work: ruby-1.8.7-p334 :003 > require 'stanfordparser' => true ruby-1.8.7-p334 :004 > preproc = StanfordParser::DocumentPreprocessor.new => ruby-1.8.7-p334 :005 > puts preproc.getSentencesFromString("This is a sentence. So is this.") This is a sentence