AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

learn.aiml in Pandorabots
 
 

I have amended my learn.aiml file so it now allows your Pandorabot to learn a language like so:

Human: Do you speak Polish?
Bot: No. Can you teach me a few phrases in Polish.

Human: czesc means how are you in Polish.
Bot: Ok I will add that fact about czesc to my database.

Human: what is czesc?
Bot: how are you in Polish.

Human: what is how are you in Polish?
Bot: czesc.

Human: Do you speak Polish?
Bot: I was taught that czesc means how are you in Polish.

Human: czesc
Bot: I am fine, thank you. Yourself?

To teach it a word or phrase, you need to use either of the following sentence structures:

Bonjour means hello in French
Bonjour in French means hello
Learn Bonjour in French means hello
Learn Bonjour means hello in French

I’ve only just written it, so it may be a little buggy but you can test it out on Mitsuku if you wish http://www.mitsuku.com
You can grab the file for free along with a few other AIML files I have written from http://www.square-bear.co.uk/aiml

Unfortunately, this will only work where your interpreter supports the <learn> and <eval> tags ie Pandorabots

Any feedback would be great.

 

 
  login or register to react