<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I hope you succeed. Using a browser implementation is excellent. The
    priority is to provide the capability. Performance improvement will
    follow. <br>
    <br>
    Tony<br>
    <br>
    n 03/24/2016 02:28 PM, Vishal Batchu wrote:<br>
    <blockquote
cite="mid:CAAQiRWaCDynuex5yprhsJuwU_A16euvgJxM19-kik+CDBDOGcw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div dir="ltr">
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>Hi Tony,<br>
                        <br>
                      </div>
                      I took a look at the Java version of the bot but I
                      wanted to ensure that the entire activity is only
                      dependent on the browser and nothing else. So I
                      wanted to use a Javascript implementation of the
                      AIML parser.<br>
                    </div>
                    Using this, <a moz-do-not-send="true"
                      href="https://www.npmjs.com/package/aimlinterpreter"
                      target="_blank">https://www.npmjs.com/package/aimlinterpreter</a>
                    and making a lot of changes I could get it to work
                    and parse the AIML files and extract the responses
                    in a manner that is similar to the original
                    activity.. The bot now works with the same AIML
                    files that are used in the original activity. <br>
                    <br>
                  </div>
                  I really like the idea of the user teaching the bot in
                  case the bot does not know the answer. I will
                  definitely add this in the javascript version and
                  maybe also make a PR on the original activity if I
                  implement this feature.<br>
                  <br>
                </div>
                One of the problems that I am currently facing is that
                Javascript takes longer than Python to load the
                responses and reply to the user, I will try make it
                faster maybe by reading the files differently or maybe
                by doing that parallelly once the activity has started.
                It currently takes about 2.5-3.5 seconds for the bot to
                respond to a question.<br>
                <br>
              </div>
              Thanks,<br>
            </div>
            Vishal Batchu<br>
          </div>
          (@erilyth)</div>
        <div class="">
          <div id=":s2" class="" tabindex="0"><img
              moz-do-not-send="true" class=""
              src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Mar 24, 2016 at 10:29 AM, Tony
          Anderson <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Speak includes
              implementation of aiml (<a moz-do-not-send="true"
                href="http://www.alicebot.org" target="_blank">http://www.alicebot.org</a>).

              There are several implementations of the engine (e.g.
              java, python). For Sugarizer, java <br>
              may be the most relevant unless Vishal wants to undertake
              a javascript version.<br>
              <br>
              This is a valuable although overlooked feature. With this
              feature, Speak can imitate human dialog. AIML provides a
              way for users to create their own bots. <br>
              This could be used by students to practice English dialogs
              or to create a bot in their native language. One technique
              is to set the default response to 'I don't know what to
              say about that.' and provide code so that user can enter:
              say: An appropriate response to the previous entry where
              the bot treats this as the response to provide to the next
              time this entry is encountered.<br>
              <br>
              client: What is your favorite fruit?<br>
              bot: I don't know what to say about that.<br>
              client: say: I like apples<br>
              <br>
              then<br>
              <br>
              client: What is your favorite fruit?<br>
              bot: I like apples<span class="HOEnZb"><font
                  color="#888888"><br>
                  <br>
                  Tony</font></span>
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 03/23/2016 06:04 AM, Lionel Laské wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">
                      <div><br>
                      </div>
                      Nice first draft Vishal.
                      <div><br>
                      </div>
                      <div>BTW it works only on Firefox for me (not on
                        Chrome).</div>
                      <div><br>
                      </div>
                      <div>Leave some work for the GSoC :-)</div>
                      <div><br>
                      </div>
                      <div>        Lionel.<br>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">2016-03-21 17:00
                            GMT+01:00 <span dir="ltr"><<a
                                moz-do-not-send="true"
                                href="mailto:sugar-devel-request@lists.sugarlabs.org"
                                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sugar-devel-request@lists.sugarlabs.org">sugar-devel-request@lists.sugarlabs.org</a></a>></span>:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex"><br>
                              Date: Sun, 20 Mar 2016 21:35:22 +0530<br>
                              From: "vishal.batchu" <<a
                                moz-do-not-send="true"
                                href="mailto:vishal.batchu@students.iiit.ac.in"
                                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:vishal.batchu@students.iiit.ac.in">vishal.batchu@students.iiit.ac.in</a></a>><br>
                              To: <<a moz-do-not-send="true"
                                href="mailto:sugar-devel@lists.sugarlabs.org"
                                target="_blank">sugar-devel@lists.sugarlabs.org</a>>,

                              <<a moz-do-not-send="true"
                                href="mailto:lionel@olpc-france.org"
                                target="_blank">lionel@olpc-france.org</a>><br>
                              Subject: [Sugar-devel] Sugarizer Activity
                              Set - Speak Activity<br>
                              Message-ID: <<a moz-do-not-send="true"
href="mailto:694e0ecf69d3cedc2ba7f087afcf3ddb@students.iiit.ac.in"
                                target="_blank">694e0ecf69d3cedc2ba7f087afcf3ddb@students.iiit.ac.in</a>><br>
                              Content-Type: text/plain; charset=UTF-8;
                              format=flowed<br>
                              <br>
                              Hi,<br>
                              <br>
                              I have started working on the Speak
                              activity port of the Sugarizer<br>
                              activity set and have implemented a lot of
                              the basic features that are<br>
                              present in the activity.<br>
                              <br>
                              I have also integrated an AIML parser
                              which will take the place of the<br>
                              AI bot.<br>
                              <br>
                              Could I get a review on the activity and
                              how I need to improve the<br>
                              modes (standard speak and the robot modes)
                              I have currently developed<br>
                              further? I have not yet worked on the
                              'Voice Chat' mode, I will start<br>
                              working on that soon.<br>
                              An issue that is currently present is that
                              the mouth stops moving<br>
                              before the speaking stops for some inputs,
                              I will be fixing that soon.<br>
                              <br>
                              Here is a link to the activity I am
                              porting,<br>
                              <a moz-do-not-send="true"
                                href="http://speak-activity-sugarizer.bitballoon.com/"
                                rel="noreferrer" target="_blank">http://speak-activity-sugarizer.bitballoon.com/</a><br>
                              <br>
                              Thanks!<br>
                              Vishal Batchu<br>
                              (@erilyth)<br>
                              <br>
                            </blockquote>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <span class="">
                  <pre>_______________________________________________
Sugar-devel mailing list
<a moz-do-not-send="true" href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a>
<a moz-do-not-send="true" href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
                </span></blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Sugar-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sugarlabs.org/listinfo/sugar-devel"
              rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Sugar-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>