4 ms·
Eliza really hits a sweet spot of 'often quite good conversation' from very simple code. There's a C# version here: https://github.com/sirkris/ELIZA.NET https:/
by codeulike 4y ago
Eliza really hits a sweet spot of 'often quite good conversation' from very simple code. There's a C# version here: https://github.com/sirkris/ELIZA.NET https://github.com/sirkris/ELIZA.NET
Main class that does processing is interesting to look at:
https://github.com/sirkris/ELIZA.NET/blob/master/src/ELIZA.NET/Session.cs https://github.com/sirkris/ELIZA.NET/blob/master/src/ELIZA.N...
Main script file data structure:
https://raw.githubusercontent.com/sirkris/ELIZA.NET/master/scripts/DOCTOR/DOCTOR.json https://raw.githubusercontent.com/sirkris/ELIZA.NET/master/s...
There's a few other nuts and bolts but thats basically it
- dukoid 4y agoI have modernized Charles Hayden's Java port a bit a while ago (much of the code is string/text processing that can be simplified a lot by using library functions) https://github.com/stefanhaustein/eliza/tree/main/modernized/src/com/github/stefanhaustein/eliza https://github.com/stefanhaustein/eliza/tree/main/modernized...
- akshayshah 4y agoThere's a Go port available over gRPC (and gRPC-Web, and the Connect RPC protocol) at https://demo.connect.build https://demo.connect.build. The code (as well as sample clients) are at https://github.com/bufbuild/connect-demo https://github.com/bufbuild/connect-demo. You can also talk to our Eliza implementation with cURL: curl --header 'Content-Type: application/json' --data '{"sentence": "I feel happy."}' https://demo.connect.build/buf.connect.demo.eliza.v1.ElizaService/Say https://demo.connect.build/buf.connect.demo.eliza.v1.ElizaSe... I love that this little bit of computing history is getting some love :)