JL iO$PddlmZmZdZeeeZdZdZedk(reyy))Chat reflections)%)z I need (.*))zWhy do you need %1?z#Would it really help you to get %1?zAre you sure you need %1?)zWhy don\'t you (.*))zDo you really think I don't %1?zPerhaps eventually I will %1.zDo you really want me to %1?)zWhy can\'t I (.*))z&Do you think you should be able to %1?z#If you could %1, what would you do?z!I don't know -- why can't you %1?zHave you really tried?)z I can\'t (.*))zHow do you know you can't %1?z"Perhaps you could %1 if you tried.z!What would it take for you to %1?)z I am (.*))z&Did you come to me because you are %1?zHow long have you been %1?zHow do you feel about being %1?)z I\'m (.*))z How does being %1 make you feel?zDo you enjoy being %1?zWhy do you tell me you're %1?zWhy do you think you're %1?)z Are you (.*))z#Why does it matter whether I am %1?z%Would you prefer it if I were not %1?zPerhaps you believe I am %1.z!I may be %1 -- what do you think?)z What (.*))zWhy do you ask?z%How would an answer to that help you?zWhat do you think?)zHow (.*))zHow do you suppose?z)Perhaps you can answer your own question.z What is it you're really asking?)z Because (.*))zIs that the real reason?z What other reasons come to mind?z(Does that reason apply to anything else?zIf %1, what else must be true?)z(.*) sorry (.*))z/There are many times when no apology is needed.z-What feelings do you have when you apologize?)z Hello(.*))z*Hello... I'm glad you could drop by today.zHi there... how are you today?z!Hello, how are you feeling today?)z I think (.*))zDo you doubt %1?zDo you really think so?zBut you're not sure %1?)z(.*) friend (.*))z Tell me more about your friends.z/When you think of a friend, what comes to mind?z/Why don't you tell me about a childhood friend?)Yes)zYou seem quite sure.z OK, but can you elaborate a bit?)z(.*) computer(.*))z Are you really talking about me?z+Does it seem strange to talk to a computer?zHow do computers make you feel?z$Do you feel threatened by computers?)z Is it (.*))zDo you think it is %1?z%Perhaps it's %1 -- what do you think?z!If it were %1, what would you do?zIt could well be that %1.)z It is (.*))zYou seem very certain.z=If I told you that it probably isn't %1, what would you feel?)z Can you (.*))z What makes you think I can't %1?zIf I could %1, then what?zWhy do you ask if I can %1?)z Can I (.*))zPerhaps you don't want to %1.zDo you want to be able to %1?zIf you could %1, would you?)z You are (.*))Why do you think I am %1?z(Does it please you to think that I'm %1?z#Perhaps you would like me to be %1.z-Perhaps you're really talking about yourself?)z You\'re (.*))zWhy do you say I am %1?rz Are we talking about you, or me?)z I don\'t (.*))zDon't you really %1?zWhy don't you %1?zDo you want to %1?)z I feel (.*))z(Good, tell me more about these feelings.zDo you often feel %1?zWhen do you usually feel %1?z!When you feel %1, what do you do?)z I have (.*))z"Why do you tell me that you've %1?zHave you really %1?z,Now that you have %1, what will you do next?)z I would (.*))z#Could you explain why you would %1?zWhy would you %1?z!Who else knows that you would %1?)z Is there (.*))zDo you think there is %1?zIt's likely that there is %1.zWould you like there to be %1?)zMy (.*))zI see, your %1.zWhy do you say that your %1?zWhen your %1, how do you feel?)zYou (.*))z$We should be discussing you, not me.zWhy do you say that about me?zWhy do you care whether I %1?)zWhy (.*))z(Why don't you tell me the reason why %1?zWhy do you think %1?)z I want (.*))z(What would it mean to you if you got %1?zWhy do you want %1?z What would you do if you got %1?z&If you got %1, then what would you do?)z(.*) mother(.*))zTell me more about your mother.z1What was your relationship with your mother like?z"How do you feel about your mother?z,How does this relate to your feelings today?z$Good family relations are important.)z(.*) father(.*))zTell me more about your father.z"How did your father make you feel?z"How do you feel about your father?zFDoes your relationship with your father relate to your feelings today?z7Do you have trouble showing affection with your family?)z(.*) child(.*))z&Did you have close friends as a child?z'What is your favorite childhood memory?z8Do you remember any dreams or nightmares from childhood?z+Did the other children sometimes tease you?zJHow do you think your childhood experiences relate to your feelings today?)z(.*)\?)zWhy do you ask that?z9Please consider whether you can answer your own question.z(Perhaps the answer lies within yourself?zWhy don't you tell me?)quit)zThank you for talking with me.z Good-bye.z/Thank you, that will be $150. Have a good day!)z(.*)) zPlease tell me more.z6Let's change focus a bit... Tell me about your family.zCan you elaborate on that?zWhy do you say that %1?zI see.zVery interesting.z%1.z$I see. And what does that tell you?zHow does that make you feel?z"How do you feel when you say that?ctdtdtdtdtdtjy)NzTherapist ---------zCTalk to the program by typing in plain English, using normal upper-z@and lower-case letters and punctuation. Enter "quit" when done.zH========================================================================z"Hello. How are you feeling today?)print eliza_chatbotconverseU/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/nltk/chat/eliza.py eliza_chatrBs9 ! OP LM (O ./r cty)N)rr r rdemorLsLr __main__N)nltk.chat.utilrrpairsr rr__name__r r rrs?- h T UK(  zLr