« Return to Thread: ChatterBean 00.007 is now available

Re: ChatterBean 00.007 is now available

by mehri :: Rate this Message:

Reply to Author | View in Thread

Right on!

I'm a pretty big Java and C++ person and this looks
pretty cool.  I especially liked reading:

The classes used to build that tree are located inside
the bitoflife.chatterbean.aiml package; every time
ChatterBean's AIML parser reads a tag, it uses
reflection to create an instance of a class with the
same name of the tag, feed it with attributes and,
perhaps, add children objects to it. For example,
every time the parser reads a <category> tag, it
creates an instance of the
bitoflife.chatterbean.aiml.Category class. The parser
code simply assumes that, for every tag it reads,
there will be a class with the same name inside the
bitoflife.chatterbean.aiml package; there is no
program code telling it what tags are valid or not.


I too in my C++ RebeccaAIML use a similar technique.
Unfortunately C++ does not have reflection so I have
one extra programming step:

//Boy I wish C++ had reflection :-(
Tag &createTag(String className)
{
   if(className == "category")
      return new Category;
   else if(className == "date")
      return new Date;
   else if // ... so on

}

Also I saw from your page: there is no program code
telling it what tags are valid or not.

Same here.  I use the xsd from Program-D and a Sax
parser error handling instead.


Great work!


--- Helio Perroni Filho <xperroni@...> wrote:

> ChatterBean version 00.007 is now available. This
> version implements the transformational elements,
> making it the first ChatterBean release to support
> the
> full set of AIML 1.0.1 tags. A lot of work is yet to
> be done before the project reaches standard
> compliance
> (for one thing, correct whitespace handling is yet
> to
> be implemented), let alone fulfill its stated
> objectives. Still, an important milestone has been
> reached.
>
> As you probably guessed, another change in this
> release is a new version number system. From now on,
> every release will have a series number and a
> version
> number. Version numbers are assigned sequentially
> within a series, while series numbers follow this
> convention:
>
>     * 00: Alpha series;
>     * 01: Beta series;
>     * 02: Production series.
>
> Whether the series number will keep advancing after
> ChatterBean upgrades to production status is not yet
> decided.
>
> http://chatterbean.bitoflife.cjb.net
>
> PS: In recent times, some people have contacted me
> to
> send contributions such as bug reports, code
> fragments
> and even an invitation to join a web ring. I wish
> you
> to know that I appreciate your help, and although my
> lack of organization has so far prevented me to
> properly address most of it, I have not forgotten
> nor
> dismissed it.
>
> --
> Ja mata ne.
> Helio Perroni Filho
>
>
>
>
>
>
>
>
>
>
_______________________________________________________
>
> Yahoo! doce lar. Fa?a do Yahoo! sua homepage.
> http://br.yahoo.com/homepageset.html 
>
> _______________________________________________
> alicebot-developer mailing list
> alicebot-developer@...
>
http://list.alicebot.org/mailman/listinfo/alicebot-developer
>


.................................................o' \,=./ `o
Mehri                                               (o o)
---=--=---=--=--=---=--=--=--=--=---=--=--=-----ooO--(_)--Ooo---

__________________________________________________
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

 « Return to Thread: ChatterBean 00.007 is now available

LightInTheBox - Buy quality products at wholesale price