ggandor / eliza-in-clojure

A Clojure port of Peter Norvig's ELIZA implementation from PAIP
MIT License
3 stars 1 forks source link

Can't launch Eliza #1

Open Aemilivs opened 3 years ago

Aemilivs commented 3 years ago

Can't launch this application with given source code

Upon loading the file and executing eliza function, the following exception is being thrown out:

Execution error (IllegalArgumentException) at eliza-basic/segment-match (eliza_basic.clj:87).
Don't know how to create ISeq from: clojure.lang.Symbol
ggandor commented 3 years ago

Hi! The program accepts (a list of) symbols as input, not strings. So you should type something like '(I want to talk to you).

EDIT: Interestingly, now it just returns nil for most of the inputs that should otherwise match some of the defined patterns. It's been a while since I ported this, so it's not loaded into my brain, but I might look into this issue when I find the time :)