[alicebot-general] Fwd: AIML conflict solving
Dr. Rich Wallace
drwallace at gmail.com
Fri Sep 22 05:52:02 PDT 2006
---------- Forwarded message ----------
From: Houssem BDIOUI <houssem.bdioui at gmail.com>
Date: Sep 21, 2006 11:34 PM
Subject: Fwd: AIML conflict solving
To: "Dr. Rich Wallace" <drwallace at gmail.com>
Hi Dr Rich,
I already sent this mail to the mailing list but as usual I received the
'Message has a suspicious header' message!
Can you please post-it for me?
Thanks
---------- Forwarded message ----------
From: Houssem BDIOUI <houssem.bdioui at gmail.com>
Date: Sep 22, 2006 8:27 AM
Subject: AIML conflict solving
To: Alicebot and AIML General Discussion <alicebot-general at list.alicebot.org>
Hi all,
Being the developer/maintainer of ProgramQ (a new release is planned very soon)
I'm interacting a lot with Charles Chevalier (charlix inventor:),
and this was our last discussion:
For the following test case, when entering "programq is cool but not
yet perfect" in ProgramQ
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <aiml version=" 1.0.1 " xmlns="http://alicebot.org/2001/AIML-1.0.1"
> xmlns:html=" http://www.w3.org/1999/xhtml"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:schemaLocation="http://alicebot.org/2001/AIML-1.0.1 http://aitools.org/aiml/schema/AIML.xsd">
> <!-- Free software (c) 2006 Charlix. -->
> <!-- This program is open source code released under -->
> <!-- the terms of the GNU General Public License -->
> <!-- as published by the Free Software Foundation. -->
> <!-- Complies with AIML 1.01 Tag Set Specification -->
> <!-- as adopted by the ALICE A.I. Foundation. -->
>
>
> <category><pattern>* IS *</pattern><template>GOOD</template></category>
> <category><pattern>* BUT *</pattern><template>WRONG</template></category>
> <category><pattern>*</pattern><template>No answer</template></category>
>
> </aiml>
The result was WRONG.
This is a second example. Trying "I went to Paris" with the following aiml file:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <aiml>
>
> <category><pattern>* WENT TO *</pattern><template>first </template></category>
> <category><pattern>* TO *</pattern><template>second</template></category>
> <category><pattern>*</pattern><template>none </template></category>
> </aiml>
gives 'second'.
My first impression is that ProgramQ is behaving correctly since
there's nothing in the spec
that permits to resolve such a conflict (by forbidding
"greedy-matching" for instance).
What do you think guys?
Regards,
Houssem
--
-----------------------------------------------------------
Houssem BDIOUI
EDA Development Engineer
Tools Team Leader - OCCS - IP & Design - HPC
STMicroelectronics Tunis
TINA: 157 5107
Public: +216 70 10 51 07
mobile: +216 97 42 24 87
e-mail: houssem.bdioui at st.com
houssem.bdioui at gmail.com
-----------------------------------------------------------
--
-----------------------------------------------------------
Houssem BDIOUI
EDA Development Engineer
Tools Team Leader - OCCS - IP & Design - HPC
STMicroelectronics Tunis
TINA: 157 5107
Public: +216 70 10 51 07
mobile: +216 97 42 24 87
e-mail: houssem.bdioui at st.com
houssem.bdioui at gmail.com
-----------------------------------------------------------
More information about the alicebot-general
mailing list