What is the Learn tag used in AIML

I am developing a small AIML engine, and I can hardly understand what the <learn> .

If I understand correctly, does it just point to an external AIML resource that can be integrated into the current ruleset?

+4
source share
3 answers
+4
source

The training tag reloads the specified AIML files. For example, if a developer changes some AIML files while chatterbot is running, the developer may say that chatterbot is reloading. Files will be reloaded only if you have this line:

 <category> <pattern>RELOAD AIML FILES</pattern> <template> Okay. <think> <learn>./aiml/*.aiml</learn> </think> </template> </category> 

A bot can be created to reload specific AIML files, all files, or a set of AIML files. A training tag is usually placed inside thought tags.

+2
source

The <learn> has gone through some evolution. Originally it meant "download the AIML file." Later Pandorabots used the <learn> tag so that the bot could be trained in new categories on the go through the conversation. The <learn> and its companion <learnf> were included in the AIML 2.0 specification. See https://docs.google.com/document/d/1wNT25hJRyupcG51aO89UcQEiG-HkXRXusukADpFnDs4/pub

0
source

All Articles