Glossary: unlearn

From VerbotWiki

Table of contents

Unlearn Command

The unlearn tag allows the Verbot to dynamically remove data from a script. Below are the tags and their use. Some tags are optional. This section will be expanded as this feature set matures. Please log on to our forums if you have additional questions.

<unlearn 
#file:filename.vkb (optional)
#name:rule name
#input:keywords (optional, removes only the input specified in the rule corresponding to the name provided)
#output:verbot response (optional, removes only the output specified in the rule corresponding to the name provided)
>

Notes:

Learning to Forget.
The following is a break down of the required and optional unlearn command attributes. Optional tags add additional functionality, but are not required for the command to operate.

#file (optional)

The optional #file allows you to specify a file name to remove knowledge from.
Note: The default file is learnedKnowledge.vkb
Format:

<unlearn
#file: filename.vkb
#name: rulename
>

#name

The #name parameter allows you to specify a Rule name to remove from the specified file.

Format: <unlearn

#name: rulename
>

#input

The optional #input defines the Input that will be removed from the specified file

Format:

<unlearn
#file: filename.vkb
#name: rulename
#input: inputtext
>

#output

The optional #output defines the Output that will be removed from the specified file

Format:

<unlearn
#file: filename.vkb
#name: rulename
#output: outputtext
>

Note: you can have as many #input or #output lines as you want (one line for each object to remove)

For more information on using the unlearn command visit our forums online.