Image Processing Reference
In-Depth Information
input a list of phonemes, together with prosodic information (duration and intonation), and
produces an audio file .wav which is played during the facial animation.
5. Some example of interaction
5.1 Example of humorous sentences generation
The following is an example of an humorous dialogue
User: What do you think about robots?
EHeBby: Robots will be able to buy happiness,
but in condensed chip form!!
obtained writing an ad hoc AIML category:
<category>
<pattern>WHAT DO YOU THINK ABOUT ROBOTS</pattern>
<template>Robots will be able to buy happiness,
but in condensed chip form!!
</template>
< /category>
The pattern delimits what the user can say.
Every time the pattern is matched,
the
corresponding template is activated.
5.2 Example of humor recognition
The recognition of humorous sentences is obtained using specific tag inserted into the
template, as shown in the following categories:
<category>
<pattern>CAN I TELL YOU A JOKE</pattern>
<template>Yes you can</template>
< /category>
<category>
<pattern> * </pattern>
<that>YES YOU CAN</that>
<template>
<srai> <humorlevel> <star/> </humorlevel> <srai>
</template>
< /category>
The second category is activated if the previous answer of the chatbot was “Yes you can”
(according to the that tag behavior), and the humorlevel tag evaluates the level of humor of
the sentence matched with the * wildcard (i.e. what the user said). The humor level can
assume three different values, low , medium and high . Depending on the humor level value, the
category will recursively call, by means of the srai tag, another category, which will explicit
an emotional tag, including the information needed to the talking head expression, and a
prosody tag to produce the prosody file. In particular we have extended the AIML language to
include three emotional tags joy , anger and sadness . Each of them also includes a mandatory
intensity attribute. The value assigned to the attribute is a measure of how much that emotion
combines to produce the overall emotional state of the chatbot. The called tag link the proper
Search WWH ::




Custom Search