For Programmers: Free Programming Magazines  


Home > Archive > Prolog > May 2004 > DCG Parser Help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DCG Parser Help
FirewallVictim

2004-05-04, 2:59 pm

Hi all, Im in need of some advice regarding DGC Parsers. Could someone
please explain how DCG parsers are used within programs. I know how to
code the basic parser and test it by manually entering lists. My
question is how are these parsers used within systems such as Eliza?
How are the called from within the main program?

Im trying to develop a small system that will read in an english
sentence (which is then converted to a prolog list) and then somehow
check whether the input list is a valid sentence or not. If it is THEN
search the list for a keyword and return a pre-defined list which uses
that keyword as a trigger. Otherwise a random response will be given.

Any help/advice would be MUCH appreciated.

Thanks in advance.
Amzi! inc.

2004-05-04, 2:59 pm

Here's an article on how to write a chat bot with an ontology:

http://www.ainewsletter.com/newsletters/aix_0309.htm

And here's a tutorial on using DCG:

http://www.amzi.com/AdventureInProlog/a15nlang.htm

I hope they help.

Regards,
Mary Kroening
Amzi! inc.

"FirewallVictim" <catazy@hotmail.com> wrote in message
news:ba2190a1.0405030541.3e0c3e06@posting.google.com...
> Hi all, Im in need of some advice regarding DGC Parsers. Could someone
> please explain how DCG parsers are used within programs. I know how to
> code the basic parser and test it by manually entering lists. My
> question is how are these parsers used within systems such as Eliza?
> How are the called from within the main program?
>
> Im trying to develop a small system that will read in an english
> sentence (which is then converted to a prolog list) and then somehow
> check whether the input list is a valid sentence or not. If it is THEN
> search the list for a keyword and return a pre-defined list which uses
> that keyword as a trigger. Otherwise a random response will be given.
>
> Any help/advice would be MUCH appreciated.
>
> Thanks in advance.



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com