Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3741

Re: Stanfordparser (or rjb) error on Snow Leopard

From Luiz Nogara <nogara@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: Stanfordparser (or rjb) error on Snow Leopard
Date 2011-04-30 11:11 -0500
Organization Service de news de lacave.net
Message-ID <a976fa683057298991569d9d0ce8dd25@ruby-forum.com> (permalink)
References <076209b0fdedcc03438395fce74d2dc8@ruby-forum.com>

Show all headers | 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 | NextPrevious in thread | Find similar | Unroll thread


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