开发者

Prolog interpreter

开发者 https://www.devze.com 2023-03-06 00:56 出处:网络
I have to \'code\' something like Eliza.pl , I don\'t 开发者_JAVA技巧know how to start. I found that link:

I have to 'code' something like Eliza.pl , I don't 开发者_JAVA技巧know how to start. I found that link: http://www.informatik.uni-hamburg.de/WSV/teaching/projekte/eliza.pl it is what I need to 'code' , but i don't want to step against law, so I want do it by myself.

How to start that work? what to start from?


The basic idea of Eliza is nicely explained in the following book:

 An Introduction to Language Processing with Perl and Prolog
 Pierre M. Nugues
 http://www.amazon.com/Introduction-Language-Processing-Perl-Prolog/dp/3642064051
 Section 9: Partial Parsing, Section 9.2.1: ELIZA

You also find working Prolog code examples. But the code makes use of Definite Clause Grammars (DCG) and of course it makes use of Prolog.

So before going to work with the book, you should probably take a basic course of Prolog that covers also some DCG.

Best Regards

0

精彩评论

暂无评论...
验证码 换一张
取 消