Well, after a lot of fixing of the gems ( mostly deprecated syntax and such
) I got it installed, but now I get the weirdest error. Basically everything
works except from the fact that, when I'm running a file that uses the
library, when the interpreter should exit ( i.e. after reading all the lines
in my .rb file ) it actually gives a segmentation fault and I tried at some
point to look deeper into it but I wasn't really in the mood.

I've attached the output.

Cheers,
Bogdan Dumitru



On Sat, Nov 21, 2009 at 8:04 AM, Ashley Moran <[email protected]
> wrote:

>
> On 21 Nov 2009, at 02:39, Bogdan Dumitru wrote:
>
> > I've been fiddling around with a linguistics library for ruby that has a
> link parser module which wraps around the link-grammar from abiword and I'm
> having some trouble getting things to work together.
> >
> > Has anybody ever used this ?
>
> No but I like the look of that library!  Thanks for the link.
>
> Can you print an error message or some indication of what's going wrong?
>
> Ashley
>
> --
> http://www.patchspace.co.uk/
> http://www.linkedin.com/in/ashleymoran
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "NWRUG" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nwrug-members%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nwrug-members?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=.


=========== sentance_parser.rb ================

require 'rubygems'
require 'linkparser'
# Basic example from the linkparser site.
dict = LinkParser::Dictionary.new( :screen_width => 100 )
sent = dict.parse( "People use Ruby for all kinds of nifty things." )
                
puts sent.subject        # => "people"
puts sent.verb           # => "use"
puts sent.object         # => "Ruby"

===========================================
$ ruby sentance_parser.rb 

people
use
Ruby
Freeing dictionary en/4.0.dict
Freeing dictionary en/4.0.affix
<main>: [BUG] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]

-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:00018c d:00018c TOP   
---------------------------
-- Ruby level backtrace information-----------------------------------------

-- C level backtrace information -------------------------------------------
0x81214e8 ruby(rb_vm_bugreport+0x48) [0x81214e8]
0x814d809 ruby [0x814d809]
0x814d89b ruby(rb_bug+0x2b) [0x814d89b]
0x80d40b6 ruby [0x80d40b6]
0xffffe600 [0xffffe600]
0x80ff468 ruby [0x80ff468]
0x80ff5b1 ruby(rb_class_path+0x11) [0x80ff5b1]
0x80ff6e2 ruby(rb_class2name+0x12) [0x80ff6e2]
0x814df24 ruby(rb_check_type+0x164) [0x814df24]
0xf7c9a809 
/usr/local/lib/ruby/gems/1.9.1/gems/linkparser-1.0.6/lib/linkparser_ext.so 
[0xf7c9a809]
0xf7c9a8d7 
/usr/local/lib/ruby/gems/1.9.1/gems/linkparser-1.0.6/lib/linkparser_ext.so 
[0xf7c9a8d7]
0xf7c98747 
/usr/local/lib/ruby/gems/1.9.1/gems/linkparser-1.0.6/lib/linkparser_ext.so 
[0xf7c98747]
0x8061ff1 ruby [0x8061ff1]
0x806213c ruby [0x806213c]
0x80622e1 ruby(rb_gc_call_finalizer_at_exit+0x161) [0x80622e1]
0x805e1bb ruby(ruby_cleanup+0x10b) [0x805e1bb]
0x805e30a ruby(ruby_run_node+0x4a) [0x805e30a]
0x805be80 ruby(main+0x60) [0x805be80]
0xf7d3eb56 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xf7d3eb56]
0x805bdb1 ruby [0x805bdb1]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted

Reply via email to