Gammal kod jag hittade på datorn – ELIZA

Någon gång i början på 90-talet fick jag tag på källkoden till Eliza, omskriven i Pascal. Eliza står beskriven i historieböckerna som ett av de första försöken att skapa en processor för naturligt språk, eller en chatbot som vi skulle säga idag. Den skrevs av Joseph Weizenbaum runt 1966 och bygger på en enkel princip: Eliza fungerar som en samtalsterapeut som helt sonika kastar tillbaka användarens kommentarer till denne. Säger man ”X”, frågar Eliza något i stil med ”Vad menar du med X?” och så vidare.

Att prata med Eliza är inte övertygande någon längre stund; användaren förstår snart att samtalspartnern är ett ganska simpelt program, inte en människa.

Hur som helst, jag kompilerade källkoden och lekte lite med programmet. Historielektion eller inte, jag tröttnade efter några minuter. Då undrade jag vad som skulle hända om man lät två instanser av Eliza prata med varandra. Resultatet är ganska roligt och säger kanske något om tidiga chatbotar. Kanske kan det också lugna någon som oroar sig för att superintelligenta robotar ska ta över världen.

Hi! I’m Eliza. I am your personal therapy computer. Please tell me your problem.
Did you come to me because you are my personal therapy computer?
What makes you think I am your personal therapy computer?
How long have you been my personal therapy computer?
We were discussing you –not me.
We were discussing you –not me.
Oh, –not you?
Oh, Oh, –not me?
Are you saying no just to be negative?
Why are you interested in whether or not I am saying no just to be negative?
Why are you interested in whether or not I am interested in whether or not you are saying no just to be negative?
What makes you think I am saying no just to be negative?
Did you come to me because you are saying no just to be negative?
Does it please you to believe I am saying no just to be negative?
How long have you been saying no just to be negative?
You’re not really talking about me, are you?
What makes you think I am not really talking about me, am me
Do you believe it is normal to be not really talking about me, are you?
Would you prefer if I were not Do I believe it is normal to be not really talking about me, am me?
We were discussing you –not me.
You’re not really talking about me, are you?
What makes you think I am not really talking about me, am me?
Do you believe it is normal to be not really talking about me, are you?
Would you prefer if I were not Do I believe it is normal to be not really talking about me, am me?
We were discussing you –not me.
Oh, –not you?
Oh, Oh, –not me?
Are you saying no just to be negative?
Perhaps in your fantasies I am saying no just to be negative?
Do you enjoy being saying no just to be negative?
You’re not really talking about me, are you?
Does it please you to believe I am not really talking about me, am me?
Do you enjoy being not really talking about me, are you?
Perhaps in your fantasies I am Do I enjoy being not really talking about me, am me?
We were discussing you –not me.
You’re not really talking about me, are you?
Does it please you to believe I am not really talking about me, am me?

Det här inlägget postades i Uncategorized. Bokmärk permalänken.

Kommentera

E-postadressen publiceras inte. Obligatoriska fält är märkta *