I have created a little package in here
http://www.cs.bham.ac.uk/research/poplog/liz.tar.gz
16683 bytes Sep 17 22:43
It contains
a short README file.
eliza1.p
a pop11 program based on this one
http://www.cs.bham.ac.uk/research/poplog/lib/elizaprog.p
but designed to run once on a sentence handed in via a shell
command. It simply prints out eliza's response and exits.
The options to invoke pop11 or define new rules have been
disabled.
The file uses the pop11 pattern matcher and is very easily
extended if you want to go on and on adding rules to make
it even more entertaining!
(Later I'll produce a version wtih a more up to date pop11
syntax. E.g. using lvars and the pattern prefix "!"
Or someone will....)
liz
A small shell script to run eliza1.p with a sentence as input
liz "why are you growling at me?"
liz "you are very intelligent for a computer"
etc.
If you install it you may have to change a path name in the shell
script, depending on where you have put poplog on your machine.
I have not been able to get this running as a cgi script, possibly
because of security constraints on our departmental web server or
maybe because I did not understand the instructions Jonathan kindly
sent me.
If anyone manages to make it available on the web please let me know. If
you'd prefer me NOT to give a pointer to it from the free poplog web
site, say so.
Let's populate the web with pop11 elizas that put all the others to
shame?
Incidentally, it uses no graphics so it should work on windows poplog
though with some windows command file replacing my little shell script.
Thanks
Aaron
===
====
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/ (And free book on Philosophy of AI)
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html
|