Dialog Lexicon ¶
NAOqi Interaction engines - Dialog Lexicon
What is Dialog lexicon ¶
dialog lexicon is a dictionary of Concepts . Its goal is to make the writing of Dialogs easier.
For further details, see: Dialog topic .
Why is Dialog lexicon an interesting resource ¶
We provide this resource in order to make the writing of interactions in QiChat easier.
Dialog based interactions can be divided into two main groups:
- what the robot says;
- what the robot understands.
Although it is quite easy to make the robot say anything, understanding the answer is much more difficult.
This is where Concepts prove to be useful. Concepts comprise synonyms for specific answers (stand-alone concepts) and ready-made grammatical structures (patterns) to broaden the spectrum of what the robot can understand.
So, instead of having to build huge lists by yourself, you can use SoftBank Robotics’ predefined ones.
- the ~yes concept comprises more than seventy different ways to tell the robot that you agree, like “yes”, “sure”, “alright”, “let’s do it”, etc. Same for the ~no concept;
- the ~can_you concept is a ready-made grammatical structure that allows you to understand a great variety of questions regarding the capacity of the robot to do something, like “Can you dance?”, “Do you know how to dance?” or “Will you please dance?”. This is possible by writing “ ~can_you dance” where “dance” can be replaced by any action of your choice, depending on your needs. This way, you could also write “ ~can_you do pushups”.
A short list of the most used concepts ¶
|~yes||Lets the robot know you agree.|
|~no||Lets the robot know you disagree.|
|~repeat_it||Lets the robot know you want him to repeat what he said.|
|~i_didnt_understand||Lets the robot know you didn’t understand what he said.|
|~i_dont_know||Lets the robot know that you don’t know what he is talking about or you have no opinion on the matter.|
|~can_you||“ ~can_you dance” -> “Can you dance?”|
|~what_is||“ ~what_is a robot” -> “What is a robot?”|
|~you_are||“ ~you_are cute” -> “You are cute.”|
|~are_you||“ ~are_you intelligent” -> “Are you intelligent?”|
|~i_am||“ ~i_am feeling good” -> “I’m feeling good.”|
|~who_is||“ ~who_is Barack Obama” -> “Who is Barack Obama?”|
|~do_you_have||“ ~do_you_have a brother” -> “Do you have a brother?”|
|~i_want_to||“ ~i_want_to play with you” -> “I want to play with you.”|
|~can_i||“ ~can_i touch your head” -> “Can I touch your head?”|
How to use dialog lexicon in QiChat ¶
Make sure the Dialog Lexicon is installed on your robot.
Be careful to install the lexicon in the right language. If you want to use the lexicon in a French topic, you will have to write include: lexicon_frf.top.
In a Dialog topic, you can import the lexicon by adding include: lexicon_enu.top right after the header of the topic:
Once the lexicon has been included, you can use Concepts in your QiChat rules:
Dynamic concepts ¶
Dynamic concepts are automatically filled.
Robot name is the robot name. For example Pepper or NAO or Romeo.
topic: ~name() language: enu include: lexicon_frf.top u:(who ~are_you) ~i_am $Dialog/MyRobotName
My Robot name is the robot name given on Robot Settings .