Wizard quiz

D

David Balmain

I would LOVE to see a pure Ruby library for something like this. I
can't imagine it wouldn't get used.

Unfortunately I think I'd have to do it in C. My linguistic skills
aren't good enough to take a purely grammatical approach. I'd need to
take a learning approach. The parser I wrote at university took 72
hours to process the input corpus which it learned all the rules from.
I'd hate to think how long this would take in pure ruby. Writing this
as a ruby extension would be the way to go. For me at least anyway.

Dave
 
J

James Edward Gray II

Unfortunately I think I'd have to do it in C. My linguistic skills
aren't good enough to take a purely grammatical approach. I'd need to
take a learning approach. The parser I wrote at university took 72
hours to process the input corpus which it learned all the rules from.
I'd hate to think how long this would take in pure ruby. Writing this
as a ruby extension would be the way to go. For me at least anyway.

It still sounds very interesting.

James Edward Gray II
 
L

Leslie Viljoen

Leslie said:
For a quiz, perhaps you could provide a selection of say 10 or so
sentences that a parser would
need to "understand" and convert to a range of method calls such as
get(obj), light(dobj, iobj),
feed(dobj, iobj) etc.

TO would need to be understood to get the
direct-object/indirect-object right:
feed bird to lion vs. feed bird lion.

I'll start on such a solution and let you know how it goes...


In my research I happened on a part-of-speech tagger by Mark Watson:
http://www.markwatson.com/opensource/

That would certainly make Mark a bit of an expert in this area! He posted
here in the forum about 10 days ago but I see his site says he is on
holiday.
Anyway the tagger uses a 92000 line lexicon and some rules to transform
the results of the lexicon lookup. It's very interesting indeed.

I studied some linguistics at university but not enough to produce
something like this. It seems there may be a standard way to accomplish
such things if one does study the field further.

Les


PS: I got this using Mark's program:

feed:VBN the:DT lion:NN to:TO the:DT bird:NN
feed:VBN the:DT lion:NN the:DT bird:NN
feed:VBN the:DT lion:NN bird:NN
put:VB the:DT red:JJ card:NN in:IN the:DT card:NN reader:NN
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top