royaltca
Pro
Posts: 33
Joined: Mon Mar 30, 2015 5:18 pm

Advanced Learn/Remember Feature

Wed Jun 24, 2015 2:24 pm

SIML Code

<Model>
      <Pattern>* is reading *</Pattern>
      <Response>
        <Learn>
          <Model>
            <Pattern>what is <Process><Match /></Process> reading</Pattern>
            <Response><Process><Match /></Process> is reading <Process><Match Index="2"/></Process></Response>
          </Model>

        </Learn>
      </Response>
    </Model>
Look at the code above.

The function of it is simple, but effect would be:

Code: Select all

I: Stefan is reading books.
Bot: (cuz no response generated, doesn't matter now)

I: Stefan is reading newspapers.
Bot: (cuz no response generated, doesn't matter now)

I: What is Stefan reading?
Bot: Stefan is reading books.
The response will always be the same, no matter Stefan is also reading newspapers. Basicly my idea is.. to extend learning and remember possibilities to add new Random's <Item>...</Item> syntax to existing learned model or even better to extend learned model with more text. To allow Bot collect and use more information about existing object (like mentioned Stefan). What do you think ? :)

Also, the cool feature would be to overwrite learned model:

Code: Select all

I: Stefan is reading books.
Bot: (cuz no response generated, doesn't matter now)

I: Stefan is reading newspapers.
Bot: (cuz no response generated, doesn't matter now)

I: What is Stefan reading?
Bot: Stefan is reading newspapers.
You know what I mean? :)

And the option to forget Pattern.

Let's say:

SIML Code

<forget>What is Stefan reading</forget>
bah.. done.

another good and useful tool will be the ability to conditional test if a pattern exists

SIML Code

<Response><If Pattern="What is Stefan reading" Exists="True"></If></Response>

User avatar
Leslie
Lead Software Architect
Posts: 377
Joined: Fri Sep 14, 2012 12:20 pm
Contact: Website

Re: Advanced Learn/Remember Feature

Thu Jun 25, 2015 8:31 pm

Actually SIML patterns are never stored as such. They are instead parsed into a Graph Tree so forgetting a pattern is easier said than done. And to make things harder there are scripted and conditional patterns and these get stored as special children in the graph tree. So a successful response generation doesn't guarantee that there is an exact pattern match.

But you are right about the Learn tag not replacing existing patterns and this is because there are certain critical internal configurations that developers have no access to.

So the first and foremost suggestion that I'll go with here is to give developers the option to allow overriding-existing patterns.

royaltca
Pro
Posts: 33
Joined: Mon Mar 30, 2015 5:18 pm

Re: Advanced Learn/Remember Feature

Thu Jun 25, 2015 10:01 pm

Oh, I understand that there are some technical problems with that ideas, but this features would be great.

Overriding seems like a must have feature for me. ;)

Return to “Feature Request and Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest