I am using Program AB as a library in a Java application. My problem is how to use learnf. I can add the following category to an aiml file in Pandorabots and things work just as the AIML spec says.
(you’ll have to take my word for the correctness of the category as it is the one in the documentation. AIML doesn’t seem to work when I try to put it in here as the preview doesn’t reproduce what I write and randomly omits tags.)
A file is written containing the learned category in a file with the name in the Learn-filename and the category is remembered and available. Pandorabots follows the spect exactly.
This doesn’t seem to happen with Program AB. The remembered category is saved in a CSV file in the aimlif subdirectory but the corresponding AIML file is never created. The problem seems to be with what is chosen for the action argument in the Bot constructor. Either the “remembered” category is never used, or it is the only category ever loaded.
Any suggestions or references to documentation would be greatly appreciated.