pepper.responder.conversational module¶
-
class
pepper.responder.conversational.
AffirmationResponder
[source]¶ Bases:
pepper.responder.responder.Responder
-
AFFIRMATION
= ['yes', 'yeah', 'correct', 'alright', 'right', 'great', 'nice', 'sweet', 'true', 'good', 'ok', 'well', 'fair', 'correctamundo', 'splendid', 'indeed', 'superduper', 'wow', 'amazing']¶
-
HAPPY
= ['Nice!', 'Cool!', 'Great!', 'Wow!', 'Superduper!', 'Amazing!', 'I like it!', 'That makes my day!', 'Incredible', 'Mesmerizing']¶
-
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
¶
-
-
class
pepper.responder.conversational.
GoodbyeResponder
[source]¶ Bases:
pepper.responder.responder.Responder
-
GOODBYES
= ['Bye', 'Bye Bye', 'See you', 'See you later', 'Goodbye', 'Good Bye', 'Have a nice day', 'Nice having talked to you']¶
-
goodbye
= 'Nice having talked to you'¶
-
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
¶
-
-
class
pepper.responder.conversational.
GreetingResponder
[source]¶ Bases:
pepper.responder.responder.Responder
-
GREETINGS
= ['Yo', 'Hey!', 'Hello!', 'Hi!', 'Good Day', "How's it going?", 'How are you doing?', "What's up?", "What's new?", "What's going on?", "What's up?", 'Good to see you!', 'Nice to see you!']¶
-
greeting
= 'Nice to see you!'¶
-
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
¶
-
-
class
pepper.responder.conversational.
NegationResponder
[source]¶ Bases:
pepper.responder.responder.Responder
-
NEGATION
= ['no', 'nope', 'incorrect', 'wrong', 'false', 'bad', 'stupid']¶
-
SORRY
= ['Sorry!', 'I am sorry!', 'Forgive me!', 'My apologies!', 'My humble apologies!', 'How unfortunate!', 'My mistake']¶
-
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
¶
-
-
class
pepper.responder.conversational.
ThanksResponder
[source]¶ Bases:
pepper.responder.responder.Responder
-
THANKS
= ['thank you', 'thanks', 'appreciate', 'cheers']¶
-
THANKS_REPLY
= ["You're welcome", 'No problem', 'Glad to be of service', 'Anytime']¶
-
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
¶
-