simbots.utils package¶
Submodules¶
simbots.utils.builtInEntities module¶
- class simbots.utils.builtInEntities.EntitySamples¶
Bases:
object
Contains samples for frequently used entities
- static byeHelper()¶
- Returns
{‘bye’: [{‘tag’: ‘case-insensitive’,’pattern’: “s(goo+d)?b+y+e+s”, ‘type’: ‘regex’}]}
- static coolHelper()¶
- Returns
{‘cool’: [{‘tag’: ‘case-insensitive’,’pattern’: “sc+oo+l+s”, ‘type’: ‘regex’}]}
- static greetingsHelper()¶
- Returns
{‘wsup’: [{‘tag’: ‘case-insensitive’,’pattern’: “s[w]*[a]*[s]+[u]+[p]+s”,’type’: ‘regex’}],’hi’: [{‘tag’: ‘case-insensitive’,’pattern’: “s[h]+[i]+s”, ‘type’: ‘regex’}],’hello’: [{‘tag’: ‘case-insensitive’,’pattern’: “s[h]+[e]+[l]+[o]+s”,’type’: ‘regex’}]}
- static laughterHelper()¶
- Returns
{‘haha’: [{‘tag’: ‘case-insensitive’,’pattern’: “s(h+(a|e)+)+(h+)?s”,’type’: ‘regex’}],’happysmily’: [{‘tag’: ‘case-insensitive’,’pattern’: “s:)s”, ‘type’: ‘regex’}]}
simbots.utils.builtInIntents module¶
- class simbots.utils.builtInIntents.IntentSamples¶
Bases:
object
Contains samples for frequently used intents, which can be used to train intents .Each method returns a list of samples
- static abilitiesSamples()¶
- Returns
list of samples like ‘what can you do ? ‘ , “what are your capabilities ?”
- static ageSamples()¶
- Returns
list of samples like ‘what is your age’ , “how old are you ?”
- static birthPlaceSamples()¶
- Returns
list of samples like ‘where were you born ‘ , “where are you from ?”
- static botNameSamples()¶
- Returns
list of samples like ‘Who is this?’, ‘Hi’ ,’Who are you’,
- static byeSamples()¶
- Returns
list of samples like ‘bye ‘ , “goodbye”
- static confirmSamples()¶
- Returns
list of samples like ‘confirm that’ , “yes”,”do that please”
- static coolSamples()¶
- Returns
list of samples like “thats cool !”,”cool”
- static discardSamples()¶
- Returns
list of samples like ‘No”,”cancel that “
- static falseSamples()¶
- Returns
list of samples like ‘thats false ‘ , “you are wrong “
- static greetingSamples()¶
- Returns
list of samples like ‘Hello !’, ‘Hi , How are you ?’,
- static jokeSamples()¶
- Returns
list of samples like “can you tell me a joke”,”tell a joke”
- static laughterSamples()¶
- Returns
list of samples like ‘hahaha’ , “thats very funny”
- static praiseSamples()¶
- Returns
list of samples like ‘you are awesome ‘ , “thats incredible !”
- static reallySamples()¶
- Returns
list of samples like ‘is that so ? ‘ , “really ?”
- static relativeSamples()¶
- Returns
list of samples like ‘Do you have any relatives ‘ , “do you have any siblings ?”
- static thanksSamples()¶
- Returns
list of samples like “Thanks”,” Thank you”
- static trueSamples()¶
- Returns
list of samples like ‘thats true’ , “thats evident”
simbots.utils.exceptions module¶
- exception simbots.utils.exceptions.IndexingError(message)¶
Bases:
Exception
Exception raised for errors in the input.
- Attributes:
expression – input expression in which the error occurred message – explanation of the error
- exception simbots.utils.exceptions.SchemaException(type=None, name=None, message=None)¶
Bases:
Exception
Exception raised for errors in schema.