Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Have your own AI therapist on your phone!

    General
    6
    18
    762
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MarkG_108 last edited by MarkG_108

      [edit: I have changed this to properly using Libertine to install the program rather than incorrectly using APT]

      This is how to install the classic AI program Eliza onto your phone.

      First, I assume people here have installed a Libertine container on their phone. Doing this is pretty straight forward using the phone's System Settings (just look up Libertine there).

      So, run the following commands in your terminal to install it:

      phablet@ubuntu-phablet:~$ libertine-container-manager install-package -p libchatbot-eliza-perl
      
      

      It should now be installed. Now, create a file called .bash_aliases, which will allow the program to be easily opened. Any text editor will do, as long as it is saved to your phone's home directory. Below is how to do it with the commandline text editor Nano:

      phablet@ubuntu-phablet:~$ nano .bash_aliases
      

      Now, you will be in the commandline text editor Nano. Type the following in it:

      alias eliza='libertine-launch -i xenial /usr/share/doc/libchatbot-eliza-perl/examples/./simple'
      
      

      Close Nano via pressing Ctrl-X, saving the file (if using the terminal on your phone, you'll see a menu thingy on the lower left with "Nano" as one of the choices -- select this then select Ctrl-X, and save the newly created file.) This allows the simple command of "eliza" (without quotes) to start the program.

      And that's it. You can now be analyzed. For example:

      phablet@ubuntu-phablet:~$ eliza
      
      Welcome to your therapy session.
      Your therapist's name is Liz.
      
      Liz:	Hello, I am a computer program. 
      you:	Hello.
      Liz:	Hi. What seems to be your problem?
      you:	I wish more people would use Ubuntu Touch.
      Liz:	Why do you say you wish more people would use Ubuntu Touch?
      you:	Because it is a good OS for smartphones.          
      Liz:	Is that the real reason?
      you:	Of course!
      Liz:	Does talking about this bother you?
      you:	No, but you are starting to bother me.
      Liz:	Are you saying no just to be negative?
      you:	Sorry.  I don't mean to be negative.
      Liz:	It did not bother me. Please continue.
      you:	Thank you.  Now I must go.  Goodbye.
      Liz:	I think you should talk to a REAL analyst.  Ciao! 
      phablet@ubuntu-phablet:~$ 
      
      

      For reference:

      Some information on Libertine here: https://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html

      Where I obtained the information on creating the .bash_aliases file to make opening the program easier with a simple command: https://blog.arubislander.nl/2018/09/running-additional-command-line-tools.html And note, any text editor (rather than Nano) could create the file, as long as it's uploaded to your phone via adb or whatever.

      ? 1 Reply Last reply Reply Quote 3
      • Aury88
        Aury88 last edited by

        😂
        that, associated with mycroft voice recognition, would be a must have app on my smartphone 😅

        1 Reply Last reply Reply Quote 1
        • ?
          A Former User @MarkG_108 last edited by

          @MarkG_108 Ha Ha, that's great! Put a smile on my face this morning .😂

          1 Reply Last reply Reply Quote 1
          • CiberSheep
            CiberSheep last edited by CiberSheep

            Ouh one of the first programs I copied from a magazine!

            There's an Eliza written in javascript and one ported to z5 you could use with Gelek Vanilla

            Another planet, another time, another universe!

            CiberSheep D 2 Replies Last reply Reply Quote 1
            • CiberSheep
              CiberSheep @CiberSheep last edited by

              Look at this week episode of one of my favorite audiocasts:
              https://99percentinvisible.org/episode/the-eliza-effect/

              Another planet, another time, another universe!

              A 1 Reply Last reply Reply Quote 1
              • A
                apollos @CiberSheep last edited by apollos

                I recall a scene from the movie, THX-1138, with a computerized device that was something between a therapist and a confessional. As I recall, it was fairly ineffective perhaps symbolizing the mental health care system.

                TweakBox word counter Tutuapp

                1 Reply Last reply Reply Quote 0
                • D
                  domubpkm @CiberSheep last edited by

                  @CiberSheep Hello.
                  What is the exact file that runs under your app ?
                  Thank you

                  CiberSheep 1 Reply Last reply Reply Quote 0
                  • CiberSheep
                    CiberSheep @domubpkm last edited by

                    @domubpkm https://ifdb.tads.org/viewgame?id=fh8iwavcu4ldm98i

                    z5 but it can read nearly all z-machine ones, level 9, gluglx, magnetic scrolls, tads (improvable) and some Scott Adams... you can choose

                    Another planet, another time, another universe!

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      domubpkm @CiberSheep last edited by

                      @CiberSheep I must be tired because I can't get the game to work!
                      So it's this folder : http://mirror.ifarchive.org/if-archive/games/zcode/eliza.zip
                      So, i unzip this folder and after ? How what do I have to do to make the game work? I tried to run eliza.z5 but it doesn't work for me.
                      Sorry for the basic questions, it's the first time i try to use your app...

                      CiberSheep 1 Reply Last reply Reply Quote 0
                      • CiberSheep
                        CiberSheep @domubpkm last edited by

                        @domubpkm So, once uncompresed (Gelek Vanilla should do that but I think you found a bug :)):

                        • Open Gelek Vanilla: https://open-store.io/app/gelek-vanilla.cibersheep
                        • Tap on the plus and import eliza.z5 from File Manager. Eliza will ask if you want a transcript, answer No (not N as suggested) and you should have see the presentation

                        Another planet, another time, another universe!

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          domubpkm @CiberSheep last edited by

                          @CiberSheep ...so I didn't make a mistake in the procedure. At the launch, I get this :
                          eliza.z5.png
                          The therapist is probably bugged under Gelek !!

                          CiberSheep 1 Reply Last reply Reply Quote 0
                          • CiberSheep
                            CiberSheep @domubpkm last edited by

                            @domubpkm Sorry. This is trully my fault but there are 2 Geleks:

                            • Gelek (strawberry) with all the info of Level 9 games and extra bits
                            • Gelek Vanilla (the yellow grey one) that is the one that supports more type of games / stories (but has no specific information about a company nor a game)

                            95cee008-b232-4925-80d6-5856bff3c5e0-imatge.png

                            f7266255-fbb6-4a64-98e9-34a220613094-imatge.png

                            Another planet, another time, another universe!

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              domubpkm @CiberSheep last edited by

                              @CiberSheep With me, no one is guilty and ESPECIALLY in computing. 😉
                              Miracle, it works!!! 👍
                              After I realized that Gelek couldn't stand suru dark... because I couldn't see the first message from the beginning...

                              The ideal would be to merge the two Gelek (if it was possible !!).
                              Do you want me to make requests for that ? and suru dark ?

                              CiberSheep 1 Reply Last reply Reply Quote 0
                              • CiberSheep
                                CiberSheep @domubpkm last edited by

                                @domubpkm I'm happy it worked.

                                Suru dark (I forgot to add that :D)
                                I don't want to merge the two Geleks. That's why I have them separate in the first place 🙂

                                Another planet, another time, another universe!

                                M 2 Replies Last reply Reply Quote 0
                                • M
                                  MarkG_108 @CiberSheep last edited by MarkG_108

                                  @CiberSheep I get stuck here, at the transcript question after selecting eliza.z5 from the file manager. screenshot20191227_152744374.png

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    MarkG_108 last edited by

                                    To digress just a bit, here's a short clip (3 minutes) from Adam Curtis' documentary HyperNormalisation. He speaks of how Weizenbaum's Eliza led to a change in AI development. Before Eliza, the focus had been on creating human thought and behaviour in a computer. After Eliza, the focus shifted to simply mirroring users of AI devices, reflecting their thoughts back to them (and ultimately gathering information about users). https://www.youtube.com/watch?v=84QouA9Sm4E

                                    1 Reply Last reply Reply Quote 1
                                    • M
                                      MarkG_108 @CiberSheep last edited by

                                      @CiberSheep Hey, it worked! I rebooted my phone, and tried it out. After using the keyboard to enter "N" to the question, I used the provided return button with your app (rather than the keyboard one), and it worked. Great stuff!screenshot20191227_162449779.png

                                      CiberSheep 1 Reply Last reply Reply Quote 1
                                      • CiberSheep
                                        CiberSheep @MarkG_108 last edited by

                                        @MarkG_108 said in Have your own AI therapist on your phone!:

                                        @CiberSheep Hey, it worked! I rebooted my phone, and tried it out. After using the keyboard to enter "N" to the question, I used the provided return button with your app (rather than the keyboard one), and it worked. Great stuff!!

                                        Thanks for the workaround. This is related to the language spell checker as informed here

                                        Have fun now

                                        Another planet, another time, another universe!

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post