MCPcopy
hub / github.com/gunthercox/ChatterBot / get_model

Method get_model

chatterbot/storage/storage_adapter.py:22–32  ·  view source on GitHub ↗

Return the model class for a given model name. model_name is case insensitive.

(self, model_name)

Source from the content-addressed store, hash-verified

20 )
21
22 def get_model(self, model_name):
23 """
24 Return the model class for a given model name.
25
26 model_name is case insensitive.
27 """
28 get_model_method = getattr(self, 'get_%s_model' % (
29 model_name.lower(),
30 ))
31
32 return get_model_method()
33
34 def get_object(self, object_name):
35 """

Callers 15

get_statement_objectMethod · 0.95
countMethod · 0.80
removeMethod · 0.80
filterMethod · 0.80
createMethod · 0.80
create_manyMethod · 0.80
updateMethod · 0.80
get_randomMethod · 0.80
dropMethod · 0.80
get_statement_modelMethod · 0.80
get_tag_modelMethod · 0.80

Calls

no outgoing calls

Tested by 1