class_docstr: The MongoDatabaseAdapter is an interface that allows
  ChatterBot to store statements in a MongoDB database.
  
  :keyword database_uri: The URI of a remote instance of MongoDB.
                         This can be any valid
                         `MongoDB connection string <https://docs.mongodb.com/manual/reference/connection-string/>`_
  :type database_uri: str
  
  .. code-block:: python
  
     database_uri='mongodb://example.com:8100/'
class_docstr_tok: ["The","MongoDatabaseAdapter","is","an","interface","that","allows","ChatterBot","to","store","statements","in","a","MongoDB","database",".",":","keyword","database_uri",":","The","URI","of","a","remote","instance","of","MongoDB",".","This","can","be","any","valid","`","MongoDB","connection","string","<","https",":","\/\/docs.mongodb.com\/manual\/reference\/connection-string\/",">","`","_",":","type","database_uri",":","str","..","code-block",":",":","python","database_uri='mongodb",":","\/\/example.com:8100\/","'"]
docstr: Return Statement object when given data
  returned from Mongo DB.
docstr_tok: ["Return","Statement","object","when","given","data","returned","from","Mongo","DB","."]
code: def mongo_to_object(self, statement_data):
      """
      Return Statement object when given data
      returned from Mongo DB.
      """
      Statement = self.get_model("statement")
  
      statement_data["id"] = statement_data["_id"]
  
      return Statement(**statement_data)
  
file_path: ChatterBot/chatterbot/storage/mongodb.py
imports: import re
  from chatterbot.storage import StorageAdapter
label_desc: Use image node_id 4 for calling the MongoDatabaseAdapter obj's underlying member method code with example usage: obj.mongo_to_object(statement_data) and returns: Statement