Concept context again

View: New views
12 Messages — Rating Filter:   Alert me  

Concept context again

by Leonard H. Chalk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have been working on a new .NET alice bot for several months now.  I had a previous .NET project that I abannoned for several reasons (mostly lack of expandability).  This one implements the context tag which turned  out to be a bit more complicated than I had expected.  But the results are pretty exciting.  Context are multi-pattern, you can have as many patterns per context as you want (they are OR'd together).  For example in the security context all the users permissions are added as individual patterns and any category that needs a permision that the user has will be activated.
 
Currently I support 12 context, new ones are very easy to add, by priority (I have to process each context independently and link them aftwards) they are:
 
focus - a super topic so if you were using a bot for multiple purposes can control large blocks of categories
topic - standard aiml topic
that - standard that
pattern - standard pattern
feedback - special bot channel used for srai so pattern like "HELLO1" are not needed.   It also is used to minimize rule firing.  for example if you needed 1000 focus "RECEPTIONIST" patterns you could create one pattern and <context name="focus">RECEPTIONIST</context><context name="pattern">_<\context> then in the template remove the focus and run a srai with a null pattern and re-route the input to the feedback channel then restore focus. 
bot - set the name of the bot, useful for having bot specific patterns in a multi bot graphmaster
user - the name of the user, useful for haveing user specific patterns
 
there are 4 emmotional context to attempt to make the bot more human
physical -  is it sick, tired ect 
emmotional - is it happy, sad ect
mental - is it bored
spiritual - not even sure how to use it but I put it in anyway
security - allow restricted content, the bot also has tag level security but context level security helps control flow.
 
I am working on some documentation but I am still finalizing the feature set.
 
Some quick highlights
 
1) Dynamic tags and context - both tags and context can be added to a running bot by aiml.  The bot analysis a compiled assembly and finds the handlers identified by custom attributes such as
 

[ProaimlContextProcessor("pattern","preprocessor",3000)]

[ProaimlContextProcessor("pattern","postprocessor",3000)]

[ProaimlTag("star","A.I.M.L 1.01 Tag Implementation")]

 

I have currently the complete AIML 1.01 set of tag defined plus a few more

 
2) Tag level security - also using custom attributes you can set permissions on everytag
 

[PrincipalPermissionAttribute(SecurityAction.Demand,Role="BotMaster")]

[ProaimlTag("system","A.I.M.L 1.01 Tag Implementation")]

3) Multiple Templates - because of tag level security a selected patten may fail to execute.  The behaviour of a failed execution is to execute the next template if there is on an exicute the next category in the stack if there is not.

4) Enhanced Syntax - the syntax that the bot reads is somewhat different from regular AIML (to use most of the features mentioned above)  but the bot does read standard AIML (uses an xslt transform to convert sheets so any standard AIML set still will work.

5) 3d character interface - uses the Haptek viewer

6) Dynamic data store - the data store interface is used throught out the system.  Any implementation of IDataStore will work so a custom datastore object to any database or other external storage system is extremly easy to  implement

7) Debuger/Editer - can examine the category stack and edit any pattern in the stack.  Depending on security level the edited pattern can be added as a global, bot specific,or user specific category

8) Concept support - <concept name="bot" mode="inline">NAME</concept>.  Concept support includes 3 binding modes:

pre - dynamically parses content after "_" but before token

inline - content is parsed statically at load time "default"

post - dynamically parses content after token but before "*"

concept can be anything, I plan in the future to make the concept tag closly integrated with CYC.

9) tag level .NET reflection support -  The bot can create,manipulate, store and retrieve any .NET object from AIML.  This makes application integration very easy.  It can start up and manipulate excel,word ect. (still in the experamental sages but the proff of concept works, just need to make the AIML syntax a little cleaner) 

10) Rapidly expanding feature set - I am still actively testing and adding features.  I plan to add CYC, LinkGrammar,WordNet,Clip, and Soar support very soon.  I already have ported all the above to .NET I just need to finish integrating it into my bot.  I am working with soar currently to control all of the emmotional chanels.

 

I'll keep you posted, I should have a web site up soon

Leonard


Alice and Macromedia Director

by Ioannis Doumanis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi All,

 

I wonder if there is any way to interface the ALICE engine with Macromedia Director. What I am interested to do is to allow the users of an application that I am constructing to communicate via speech with the ALICE engine and get the output utterance from a haptek character that I have imported into Director. Any ideas on how to do that?

 

Thanks in advance!!!!

 


Re: Alice and Macromedia Director

by Dr. Rich Wallace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This may help...
http://personal.lionhead.com/jdurrant/flashbot/index2.html

> Hi All,
>
>
>
> I wonder if there is any way to interface the ALICE engine with
> Macromedia Director. What I am interested to do is to allow the users of
> an application that I am constructing to communicate via speech with the
> ALICE engine and get the output utterance from a haptek character that I
> have imported into Director. Any ideas on how to do that?
>
>
>
> Thanks in advance!!!!
>
>


--
Dr. Rich
W A L L A C E
ALICE A.I. Foundation
drwallace@...
Winner, Loebner Prize 2000, 2001, 2004


_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Re: Alice and Macromedia Director

by Dr. Rich Wallace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://www.pandorabots.com/botmaster/en/~1109739c033d94c6bb9cbe47~/faq#h2

may be useful too.  Go to section H.2


> Hi All,
>
>
>
> I wonder if there is any way to interface the ALICE engine with
> Macromedia Director. What I am interested to do is to allow the users of
> an application that I am constructing to communicate via speech with the
> ALICE engine and get the output utterance from a haptek character that I
> have imported into Director. Any ideas on how to do that?
>
>
>
> Thanks in advance!!!!
>
>


--
Dr. Rich
W A L L A C E
ALICE A.I. Foundation
drwallace@...
Winner, Loebner Prize 2000, 2001, 2004


_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

RE: Alice and Macromedia Director

by Ioannis Doumanis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


<<http://www.pandorabots.com/botmaster/en/~1109739c033d94c6bb9cbe47~/faq#h2

may be useful too.  Go to section H.2>>

Thanks for the reply. The only problem is that I want ALICE to run locally
on the user's machine. I am trying to access the COM wrapper for Alice with
an extra called glue32. I will report my findings here. I think it would be
interesting to see ALICE to add a more intelligent touch in multimedia
cd-roms. Any ideas or suggestions are welcomed



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

RE: Alice and Macromedia Director

by Ioannis Doumanis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just wonder if there is any ActiveX control for Program N that will allow
me to integrate its functionality with Macromedia Director. Any suggestion
will be appreciated

Thanks


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

RE: Alice and Macromedia Director

by Gary Dubuque :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The code of Program N is designed so that it can be rebuilt into a
stand-alone object.  I just have not done this yet.  Sounds like a day or
two project, so I guess I'll try to pull together a prototype for you.  The
main problem will be sorting out where all the support files go.  I've also
got another request to do it in VB.NET which I'll probably use the C#
version I have for that.  Stay tuned to see how this goes!

You're Welcome,
  Gary Dubuque, can you believe it I'm still exploring dialog management and
processing multiple sentence inputs?

-----Original Message-----
From: alicebot-developer-admin@...
[mailto:alicebot-developer-admin@...]On Behalf Of Ioannis
Doumanis
Sent: Sunday, June 26, 2005 11:19 AM
To: alicebot-developer@...
Subject: RE: [alicebot-developer] Alice and Macromedia Director


Hi,

I just wonder if there is any ActiveX control for Program N that will allow
me to integrate its functionality with Macromedia Director. Any suggestion
will be appreciated

Thanks


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer


_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

RE: Alice and Macromedia Director

by Ioannis Doumanis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gary

<<The code of Program N is designed so that it can be rebuilt into a
stand-alone object.  I just have not done this yet.  Sounds like a day or
two project, so I guess I'll try to pull together a prototype for you.>>

I will be really grateful if you can do this for me. You will enhance my
project much further. I have managed to accomplish some basic keyword
matching with Lingo code but nothing like the abilities of AIML. Please let
me know whenever it is ready by email at:

Idoumanis@...
Or idoumanis@...

Of course, I will also find a way to share the control with all interested
developers and also post in the official Director Forum. I presume that
several director developers will want the ALICE active x.

Looking forward for the outcome!!!!!!!!!!!!!

Again many many thanks!!!!!!!!!!


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Re: Alice and Macromedia Director

by Albertas Mickenas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,


We have done something like this.

We have made flash frontend for a bot and connected it to ProgramD
running localy via HTTP. ProgramD was hacked so that is used FreeTTS to
synthesize speech on reply.

Then flash application was packaged to exe file. ProgramD was started
before the director presentation, then director presentation started
flash exe file on user request. We tried to integrate swf file to
director, but without success, probably due to lack of director knowledge...

This was ok for presentation installed on touchscreen terminal, but for
CD version it had serious problems as ProgramD would take ages to start
and load AIML brain...


Ioannis Doumanis wrote:
| Hi,
|
|
|
<<http://www.pandorabots.com/botmaster/en/~1109739c033d94c6bb9cbe47~/faq#h2
|
| may be useful too.  Go to section H.2>>
|
| Thanks for the reply. The only problem is that I want ALICE to run locally
| on the user's machine. I am trying to access the COM wrapper for Alice
with
| an extra called glue32. I will report my findings here. I think it
would be
| interesting to see ALICE to add a more intelligent touch in multimedia
| cd-roms. Any ideas or suggestions are welcomed
|
|
|
| __________________________________________________
| Do You Yahoo!?
| Tired of spam?  Yahoo! Mail has the best spam protection around
| http://mail.yahoo.com
|
| _______________________________________________
| alicebot-developer mailing list
| alicebot-developer@...
| http://list.alicebot.org/mailman/listinfo/alicebot-developer
|

- --


albertas.
- ---------------
sistemu analitikas
UAB MegaLogika, www.megalogika.lt, tel. +37052611428
man patinka aktyvi protoplazma,
bet man patinka ir pasyvi protoplazma
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCv8BZJ2lgtwRRHqERApiWAJ4vFf74rFfu5yVV4nxALSIFf3jJIQCdFGqP
/FKW9Iux3oqbf8tvYAo1Uek=
=U+6A
-----END PGP SIGNATURE-----
_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

RE: Alice and Macromedia Director

by Ioannis Doumanis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Albertas

Is there any way to have a look in your flash project files (fla + swf)? Can
you sent it to me at idoumanis@... or idoumanis@... ?

Thanks in advance!!!


<<Then flash application was packaged to exe file. ProgramD was started
before the director presentation, then director presentation started
flash exe file on user request. We tried to integrate swf file to
director, but without success, probably due to lack of director
knowledge...>>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Parent Message unknown RE: Alice and Macromedia Director

by Ioannis Doumanis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I believe that Gary Dubuque will soon develop an active x contol that will
allow us to integrate ALICE with Director. If he is successful I believe
that our problems with Director and Flash will be totally solved.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

RE: Alice and Macromedia Director

by Gary Dubuque :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Ioannis,

On the ww.AIMLpad.com site there is a new download available.  Try the
AIMLocx.zip file.

This is just the Alice chat engine used by AIMLpad in an OCX.  You need to
build the database using AIMLpad and copy it into the db folder where you
set up the AIML.OCX ActiveX object. But the first step is to register the
ocx using regsrv32.exe so that other programs can embed it.

For a test I inserted the object on an Excel 2000 spreadsheet and then
created the following macro using the VBA editor:

Public Sub Chat()
  Dim ask As String
  Dim objAIML As New AIML

  ask = "Connect"
  Do
    ask = InputBox(objAIML.Talk(ask), "Alice Says:")
    If ask = "" Then Exit Do
  Loop

End Sub

From this you can see that the AIML.OCX has a method called Talk() that
takes a string input parameter and returns a string reply.

To accomplish this feat I had to simplify the engine by removing any dialogs
or MS Agent functions it had.  This means the expert system and the text
editing functions of the notepad area are gone from the script processor.
About the only thing gone from the AIML interpreter is the
<system>clearscreen</system> command (although I don't know how you'd use
the <sec> tag since the Talk() method only replies once).  I also took out
the IRC and micro webserver.  But it still can connect to OpenCyc or
Answerbus or ConceptNet or other web sites like Pandorabot, etc.  Also the
scripting can't input or output, but basically it can only set values of
predicates or modify the AIML database.

I did not make an ActiveX automation method for learning the AIML in this
first version.  The code is there and just needs the wrapper method.  I
figured this was for running the chat which is why I only did the Talk()
method.

For the most part the structure of the supporting folders like "bot" and
"sub" and "ref" and "db" and "data"  and even "Dict" are the same as
AIMLpad.  The options.ini file in the same folder as AIML.OCX controls all
these locations and the rest of the run-time parameters.  I have it set in
the zip download to use graphmaster matching so the first answer it
generates is a bit slower than the rest.

I might improve it to do the exchange of inputs and outputs using the script
language.  I also might add the MS Agent back in later.

Have fun,
  Gary Dubuque, growing in the challenge of dialog management (again)

-----Original Message-----
From: alicebot-developer-admin@...
[mailto:alicebot-developer-admin@...]On Behalf Of Ioannis
Doumanis
Sent: Sunday, June 26, 2005 3:06 PM
To: alicebot-developer@...
Subject: RE: [alicebot-developer] Alice and Macromedia Director


Hi Gary

<<The code of Program N is designed so that it can be rebuilt into a
stand-alone object.  I just have not done this yet.  Sounds like a day or
two project, so I guess I'll try to pull together a prototype for you.>>

I will be really grateful if you can do this for me. You will enhance my
project much further. I have managed to accomplish some basic keyword
matching with Lingo code but nothing like the abilities of AIML. Please let
me know whenever it is ready by email at:

Idoumanis@...
Or idoumanis@...

Of course, I will also find a way to share the control with all interested
developers and also post in the official Director Forum. I presume that
several director developers will want the ALICE active x.

Looking forward for the outcome!!!!!!!!!!!!!

Again many many thanks!!!!!!!!!!


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer


_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer
LightInTheBox - Buy quality products at wholesale price