[Bese-devel] string to list riddle

Ties Stuij cjstuij at gmail.com
Tue Jan 10 08:34:00 UTC 2006


sorry, sent the code only to marco by mistake, here is the forward to
the mailing-list >

> have some code me can see?

sure, see the attachment.

the relevant part is in the render method on the eliza-viewer
component. The problem should be quite obvious: as you can see on the
output hml the string converted to a list and the natural list equate
to a different output from the eliza program. the first gives a
generic output, the second gives the output relevant to the input.

now on the repl try: (eliza-portal (string-to-list "i feel sad"))

which is equivalent to the string converted to a list in the render
method, with the difference that this one does give the relevant
output.

thanks for the trouble,
Ties
<


furthermore pascal writes:
>You'd need to hack a readtable to read correctly most of the macro
>characters including #\# and #\,, but really you should scan the
>natural language text yourself.

Thanks for the help, but you're overshooting the scope of the problem
at hand by a mile. Sure, i did /some/ checking for deviant characters
which i let out for simplicity, but that's not the problem here. The
text i parsed is: "i feel sad". That's it. Yet the environment of ucw
somehow prevents the correct parsing of the resulting list. Run the
code to see what i think is so absurd.

Ties
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eliza-problem.lisp
Type: application/octet-stream
Size: 12519 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060110/a146739b/attachment.obj>


More information about the bese-devel mailing list