def __init__(self, useFifos, appID): #self.cap = capabilitiesClass() # capabilities self.my_memory = memoryClass() # memory of concepts # Add a concept 'I', defining CCSR identity self.my_memory.add('I') self.my_memory.concepts[ 'I'].state = 'great' # dynamically reflect mood by telemetry self.my_memory.concepts['I'].person = '1sg' # 2st person singular self.my_memory.concepts['I'].isProperNoun = True self.my_memory.concepts['I'].properties = {"name": "robbie"} # Synonymes for certain response forms, to give some natural response # variations self.responseVariations = { "yes": ("Yes.", "Affirmative.", "Definitely.", "Sure.", "Absolutely."), "acknowledge": ("I see.", "OK.", "Acknowledged.", "If you say so.", "Copy that.", "I'll remember that."), "gratitude": ("Thanks!", "I appreciate that.", "You are too kind.", "Oh stop it."), "insulted": ("I'm sorry you feel that way.", "Well, you're not too hot either.", "Look who's talking.", "Can't we just be nice."), "gratitudeReply": ("You're very welcome!", "Sure thing!", "No worries!", "Don't mention it!"), "bye": ("See you later.", "It was a pleasure.", "Bye bye."), "hi": ("Hi, how are you.", "Hey there.", "What's going on!"), "no": ("No.", "Negative.", "I don't think so.", "Definitely not.", "No way.", "Not really.") }
def __init__(self, useFifos, appID): self.cap = capabilitiesClass() # CCSR capabilities self.ccsrmem = memoryClass() # memory of concepts # Add a concept 'I', defining CCSR identity self.ccsrmem.add('I') self.ccsrmem.concepts[ 'I'].state = 'great' # dynamically reflect CCSR mood by telemetry self.ccsrmem.concepts['I'].person = '1sg' # 2st person singular self.ccsrmem.concepts['I'].isProperNoun = True # This is a list of useful 'pod names' in an XML file returned by Wolfram Alpha API # as a result of a query. self.wolframAlphaPodsUsed = ('Notable facts', 'Result', 'Definition') # translate CCSR status dump items to concepts for ccsrmem self.translateStatus = { "compass": "******", "temperature": "temperature", "happiness": "happiness", "arousal": "arousal", "battery": "battery level", "power": "power usage", "light": "ambient light level" } # Synonymes for certain response forms, to give some natural response # variations self.responseVariations = { "yes": ("Yes.", "Affirmative.", "Definitely.", "Sure.", "Absolutely."), "acknowledge": ("I see.", "OK.", "Acknowledged.", "If you say so.", "Copy that.", "I'll remember that."), "gratitude": ("Thanks!", "I appreciate that.", "You are too kind.", "Oh stop it."), "insulted": ("I'm sorry you feel that way.", "Well, you're not too hot either.", "Look who's talking.", "Can't we just be nice."), "gratitudeReply": ("You're very welcome!", "Sure thing!", "No worries!", "Don't mention it!"), "bye": ("See you later.", "It was a pleasure.", "Bye bye."), "hi": ("Hi, how are you.", "Hey there.", "What's going on!"), "no": ("No.", "Negative.", "I don't think so.", "Definitely not.", "No way.", "Not really.") } self.positivePhrases = ['smart', 'impressive', 'cool'] self.negativePhrases = ['stupid', 'annoying', 'boring'] self.emotionMap = [[ 'angry.', 'aggrevated', 'very excited', 'very happy' ], ['frustrated', 'stressed', 'excited', 'happy.'], ['sad', 'doing OK', 'doing well', 'doing very well.'], ['depressed', 'sleepy', 'bored', 'relaxed']]
def __init__(self, useFifos, appID): #self.cap = capabilitiesClass() # capabilities self.my_memory = memoryClass() # memory of concepts # Add a concept 'I', defining CCSR identity self.my_memory.add('I') self.my_memory.concepts['I'].state = 'great' # dynamically reflect mood by telemetry self.my_memory.concepts['I'].person = '1sg' # 2st person singular self.my_memory.concepts['I'].isProperNoun = True self.my_memory.concepts['I'].properties = {"name": "robbie"} # Synonymes for certain response forms, to give some natural response # variations self.responseVariations = {"yes": ("Yes.", "Affirmative.", "Definitely.", "Sure.", "Absolutely."), "acknowledge": ("I see.", "OK.", "Acknowledged.", "If you say so.", "Copy that.", "I'll remember that."), "gratitude": ("Thanks!", "I appreciate that.", "You are too kind.", "Oh stop it."), "insulted": ("I'm sorry you feel that way.", "Well, you're not too hot either.", "Look who's talking.", "Can't we just be nice."), "gratitudeReply": ("You're very welcome!", "Sure thing!", "No worries!", "Don't mention it!"), "bye": ("See you later.", "It was a pleasure.", "Bye bye."), "hi": ("Hi, how are you.", "Hey there.", "What's going on!"), "no": ("No.", "Negative.", "I don't think so.", "Definitely not.", "No way.", "Not really.") }
def __init__(self, useFifos, appID): self.cap = capabilitiesClass() # CCSR capabilities self.ccsrmem = memoryClass() # memory of concepts # Add a concept 'I', defining CCSR identity self.ccsrmem.add('I') self.ccsrmem.concepts['I'].state = 'great' # dynamically reflect CCSR mood by telemetry self.ccsrmem.concepts['I'].person = '1sg' # 2st person singular self.ccsrmem.concepts['I'].isProperNoun = True # This is a list of useful 'pod names' in an XML file returned by Wolfram Alpha API # as a result of a query. self.wolframAlphaPodsUsed = ('Notable facts', 'Result', 'Definition') # translate CCSR status dump items to concepts for ccsrmem self.translateStatus = {"compass": "******", "temperature": "temperature", "happiness": "happiness", "arousal": "arousal", "battery": "battery level", "power": "power usage", "light": "ambient light level"} # Synonymes for certain response forms, to give some natural response # variations self.responseVariations = {"yes": ("Yes.", "Affirmative.", "Definitely.", "Sure.", "Absolutely."), "acknowledge": ("I see.", "OK.", "Acknowledged.", "If you say so.", "Copy that.", "I'll remember that."), "gratitude": ("Thanks!", "I appreciate that.", "You are too kind.", "Oh stop it."), "insulted": ("I'm sorry you feel that way.", "Well, you're not too hot either.", "Look who's talking.", "Can't we just be nice."), "gratitudeReply": ("You're very welcome!", "Sure thing!", "No worries!", "Don't mention it!"), "bye": ("See you later.", "It was a pleasure.", "Bye bye."), "hi": ("Hi, how are you.", "Hey there.", "What's going on!"), "no": ("No.", "Negative.", "I don't think so.", "Definitely not.", "No way.", "Not really.") } self.positivePhrases = ['smart', 'impressive', 'cool'] self.negativePhrases = ['stupid', 'annoying', 'boring'] self.emotionMap = [['angry.', 'aggrevated', 'very excited', 'very happy'], ['frustrated', 'stressed', 'excited', 'happy.'], ['sad', 'doing OK', 'doing well', 'doing very well.'], ['depressed', 'sleepy', 'bored', 'relaxed']]