Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3741
| 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 <nogara@gmail.com> |
| 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 | <a976fa683057298991569d9d0ce8dd25@ruby-forum.com> (permalink) |
| 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 | <a976fa683057298991569d9d0ce8dd25@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:3741 |
Show key headers only | View raw
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
=> <DocumentPreprocessor>
ruby-1.8.7-p334 :005 > puts preproc.getSentencesFromString("This is a
sentence. So is this.")
This
is
a
sentence
Back to comp.lang.ruby | Previous | Next — Previous in thread | Find similar | Unroll thread
Stanfordparser (or rjb) error on Snow Leopard Boris Do <borislavd@gmx.net> - 2011-04-20 19:42 -0500 Re: Stanfordparser (or rjb) error on Snow Leopard Luiz Nogara <nogara@gmail.com> - 2011-04-30 11:11 -0500
csiph-web