Article View: comp.lang.prolog
Article #2144Natural Language Parsing in Prolog
From: James Tauber
Date: Mon, 21 Dec 1992 08:25
Date: Mon, 21 Dec 1992 08:25
20 lines
1256 bytes
1256 bytes
Forgive me if this is an obvious question but I've never done any Prolog programming before and, as I'm working at home, don't have access to any books (so references will be useless to me). How do I implement a natural language parser in Prolog using a context-free grammar? I need my program simply to produce all possible sentence trees for a given sentence. I would imagine this would be simply a matter of declaring a relationship for each re-write rule and then giving the program a sentence as a goal. On a more complicated level, how would I implement a simple feature based grammar to account for subject-verb agreement, etc.? Thanks in advance James Tauber P.S. e-mail would be perferred. If you know of any ftp sites with parsers in Prolog, that information would also be appreciated. jtauber@tartarus.uwa.edu.au
Technical Details
Message-ID:
<1h3v1dINN6cs@uniwa.uwa.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!batcomputer!munnari.oz.au!uniwa!jtauberShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!batcomputer!munnari.oz.au!uniwa!jtauber From: jtauber@tartarus.uwa.edu.au (James Tauber) Newsgroups: comp.lang.prolog Subject: Natural Language Parsing in Prolog Date: 21 Dec 1992 08:25:17 GMT Organization: The University of Western Australia Lines: 44 Message-ID: <1h3v1dINN6cs@uniwa.uwa.edu.au> NNTP-Posting-Host: tartarus.uwa.edu.au X-Newsreader: Tin 1.1 PL5