Posts Tagged "ai"

Talky-AI

Posted by on Jul 25, 2010 in Linux, Python | 0 comments

This script makes two AI-s have a conversation with eachother. Things can go quite out of hand. Thanks to the xgoogle library it's also possible to have the text translated. A logfile is automatically generated with all the spoken text. Robots and API provided by www.pandorabots.com. There are some bugs (like missing punctuation when trimming the text), comments on those are welcome.

Example conversations:

Enter a topic: cats
Getter: Yes I love them.
Mihkel: Ah.  You love  them. What do you like about  it so much?
Getter: Ah hah.   Sometimes I think love is just a biological urge. Other times  it seems like a spiritual quality. Love, unlike energy or matter, seems limitless.   The melodramatic touch.
Mihkel:  Good
Getter: Thanks for the compliment.
Mihkel: Oh don't mention it.
Getter: Yay.  The pleasure was all mine.
Mihkel: I'm glad your impressed, .   I like you because are so polite.

 

 

Enter a topic: cookies
Getter: ?? ????????????????
Mihkel: ? ?? ???? ?? ? ??? ??? ???????????????. ? ????? ??????? ??? ??.
Getter: ?? ?????? ?????? ? ?? ??????????????. ?? ?????? ???????, ???? ??? ? ???????? ?????????? ?????????????? ??????????.
Mihkel: ??, ??????????, ???????? ???. ?????, ?? ?? ????????? ??, ??? ??? ? ???? ? ????, ?? ?????
Getter: ??????? ?? ??????? ??????
Mihkel: ??? ???????.
Getter: ?????? ?? ???? ?????????
Mihkel: ???? ??????? ???????.

 

Enter a topic: Romans are brave.
Getter: Kas sulle meeldib olla number üks?
Mihkel: Hmm, ma ei ole kindel, kas ma tahan olla number üks, et palju. Mis see on?
Getter: Kas te olete kunagi olla kindel
Mihkel: Olen sama kindel kui ma saan olla.
Getter: Sa kõlad väga enesekindel.
Mihkel: Mil moel saan tunduda, et?
Getter: Esimene neist, arvan ma.
Mihkel: Mis oli teine?
Getter: Ma ei mõtle enam kui ühe sekundi jooksul.
Mihkel: Võibolla mõtted on vaid elektri impulsid.

 

You can DOWNLOAD the Python code HERE.
Read More

Chatting with a ChatterBot AI in Python

Posted by on Jul 22, 2010 in Python | 0 comments

Read More