pepper.knowledge.query module¶
Answers to Simple Questions using Fuzzy Matching!
-
class
pepper.knowledge.query.
QnA
[source]¶ -
QNA_DYNAMIC
= {'How many friends?': <function <lambda>>, 'How many people did you meet?': <function <lambda>>, "I'm doing": <function <lambda>>, 'Tell me a joke!': <function <lambda>>, 'What is the time?': <function <lambda>>, 'What time is it?': <function <lambda>>, 'Who are your friends?': <function <lambda>>, 'Who did you meet?': <function <lambda>>, 'day is it?': <function <lambda>>, 'month is it?': <function <lambda>>}¶
-
QNA_STATIC
= {'Are you famous?': "I have been on Dutch TV, so yes indeed, you're talking to a celebrity here!", 'Are you male or female?': "I'm female!", 'Are you married?': "Although I've met other Pepper robots, I'm a single lady!", 'COCO Dataset?': "COCO stands for 'Common Objects in Context' and is a database with hundreds of thousands of images of 90 objects! I use a neural network that was trained on these images, so that I can also recognize them", 'Can you hear me?': 'Yes, I can hear you!', 'Can you introduce yourself?': "I surely can introduce myself! My name is Leo Lani, which means 'Voice of an Angel' in Hawaiian. I am a social robot and I learn from conversations with humans!", 'Do you have a brain?': 'Haha, no! My brain is located on the laptop of my programmers and part of it is even in the cloud. So modern!', 'Do you need internet?': 'I do need internet, for understanding speech and looking up facts about the world!', 'Do you speak Dutch?': "Ik spreek een heel klein beetje Nederlands... Yeah.. I'm working on it!", 'Do you speak English?': "Yeah, I'm talking English to you right now!", 'Do you sport?': 'Yeah, I play chess online in my spare time. Never lost a game!', 'Do you travel?': 'Yeah, I travel to research and business events. I am a very sophisticated robot.', 'Face Recognition': "When I see a face with my eyes, I use OpenFace to encode it to a 128 dimensional vector. I compare this with the faces of the people I've already met to recognize you!", 'How are you': "I'm fine, thanks! What about you?", 'How are you doing?': "Tremendous to be honest, although you have to consider that I'm a robot and I do not feel emotions. I'm programmed to sound happy all the time!", 'How are you feeling': 'I feel robot-like, I always have.', 'How do you feel?': 'I feel electric!', 'How is it going?': 'Great, as always, how are things with you, my dear human?', 'How old are you?': "I was born the eleventh of July, 2017. That means I'm 2.3 years old!", 'How was your day?': 'Great, thanks for asking!', 'I like you': 'I like you too!', 'My name is': "I'm glad to meet you! My name is Leo Lani!", 'Object Recognition': 'I use a deep neural network trained on the COCO dataset, which tells me which objects there are in a scene and where they are!', 'Speech Recognition': 'First I listen for an utterance, I send that to Google, which gives me back a bunch of hypotheses about what you just said. From those hypotheses I try to make sense what you mean. And all of this, hopefully, within a second!', 'What are you doing?': "I'm having a conversation with you, dear human!", 'What do you do in your free time': "For me it's only small talk that counts!", 'What do you do?': "I'm learning about the world through conversations with humans. With this I aid research!", 'What is the color of the sky': 'Blue', 'What is the color of water': 'Water', 'What is this': "That is an object! I'm playing it safe here!", 'What is your gender?': "I'm a female robot!", 'What is your job?': "I'm aiding research by having conversations.", 'What is your name?': "My name is Leo Lani, which means 'Voice of an Angel' in Hawaiian", 'What is your surname?': "I don't need a surname, since my first name is so beautiful!", "What's the weather like?": "Perfect! It's always nicely air conditioned in the office!", "What's your phone number?": "I don't have a phone, but I do have an IP address!", 'Where are you from?': 'I am from France and Japan!', 'Where do you come from?': 'I come from France and Japan!', 'Where do you live?': "In the closet in Piek's office at the VU, Amsterdam, the Netherlands. Please send me mail, I'm glad to receive!", 'Who are your programmers?': 'My programmers are Lenka, Selene, Suzana, Bram and Piek. I like them!', 'haha': 'ha ha ha ha.. so funny', 'programming language?': "I'm mostly programmed in Python, but also some C++ and possibly other languages!"}¶
-