pepper.responder.unknown module

class pepper.responder.unknown.UnknownResponder[source]

Bases: pepper.responder.responder.Responder

ELOQUENCE = ['I see', 'Interesting', 'Very Interesting, Indeed!', 'Good to know', 'I do not know, but I have a joke {insert joke}', 'As the prophecy foretold', 'But at what cost?', 'So let it be written, ... so let it be done', 'So ... it has come to this', "That's just what he/she/they would've said", 'Is this why fate brought us together?', 'And thus, I die', '... just like in my dream', 'Be that as it may, still may it be as it may be', 'There is no escape from destiny', 'Wise words by wise men write wise deeds in wise pen', 'In this economy?', 'and then the wolves came', 'Many of us feel that way', 'But, why?', 'May I ask you why?', 'Why?']
HEARD = ['I think you said', 'I heard', 'I picked up', "I'm guessing you told me"]
NOT_UNDERSTAND = ["I don't know what it means", "I don't understand it", "I couldn't parse it", 'I have no idea about it', 'I have no clue', 'this goes above my robot-skills', 'I find this quite difficult to understand', "It doesn't ring any bells"]
requirements
respond(utterance, app)[source]

Respond to Utterance

When successful, respond should return a quality score and a callable implementing the response

Parameters:
  • utterance (Utterance) – Utterance to respond to
  • app (Union[requirements]) – Components to Interact with as Response
Returns:

response – response quality & responder function

Return type:

float, callable

type
pepper.responder.unknown.random() → x in the interval [0, 1).