...
Actions are also called sub-dialogues and define dialogue trees. For example this is one sub-dialogue found in the CakeVendor example below:
Anchor | ||||
---|---|---|---|---|
|
These sub-dialogue trees define a small self-contained portion of conversation. the criteria to use to decide what should be a sub-dialogue is similar to the criteria used to decide what should be a function or method in a programming language: generality and reusability.
...
Anchor | ||||
---|---|---|---|---|
|
The preconditions are used to limit which sub-dialogues can be executed in a given state. Rewards are used to differentiate among a set of executable sub-dialogue.
...
The automatically generated dialogue tree is:
In general theĀ IF
keyword has the following syntax:
...
After defining the content and the dialogue policy we are ready for training the NLU. We need to start the FLoReS module. After the interface pops up:
select the NLU menu and under it the training voice. The first time the interface is opened the training happens automatically but if you update the content as described in step 1, you need to manually select this menu to update the NLU models.
...
CakeVendor.zip contains all is required to define a CakeVendor character that is an extension of the character created in this other tutorial for NPCEditor (also available in the vhtoolkit wiki).
...