rasa/core/tracker_store.py
def retrieve(self, sender_id: Text) -> DialogueStateTracker:
        """Create a tracker from all previously stored events."""

        query = self.session.query(self.SQLEvent)
        result = query.filter_by(sender_id=sender_id).all()
        events = [json.loads(event.data) for event in result]

        if self.domain and len(events) > 0:
            logger.debug("Recreating tracker "
                         "from sender id '{}'".format(sender_id))

            return DialogueStateTracker.from_dict(sender_id, events,
                                                  self.domain.slots)
        else:
            logger.debug("Can't retrieve tracker matching"
                         "sender id '{}' from SQL storage.  "
                         "Returning `None` instead.".format(sender_id))
Create a tracker from all previously stored events.
Create a tracker from all previously stored events.
Create a tracker from all previously stored events .
def retrieve(self, sender_id: Text) -> DialogueStateTracker:
        query = self.session.query(self.SQLEvent)
        result = query.filter_by(sender_id=sender_id).all()
        events = [json.loads(event.data) for event in result]
        if self.domain and len(events) > 0:
            logger.debug("Recreating tracker "
                         "from sender id '{}'".format(sender_id))
            return DialogueStateTracker.from_dict(sender_id, events,
                                                  self.domain.slots)
        else:
            logger.debug("Can't retrieve tracker matching"
                         "sender id '{}' from SQL storage.  "
                         "Returning `None` instead.".format(sender_id))
def retrieve ( self , sender_id : Text ) -> DialogueStateTracker : query = self . session . query ( self . SQLEvent ) result = query . filter_by ( sender_id = sender_id ) . all ( ) events = [ json . loads ( event . data ) for event in result ] if self . domain and len ( events ) > 0 : logger . debug ( "Recreating tracker " "from sender id '{}'" . format ( sender_id ) ) return DialogueStateTracker . from_dict ( sender_id , events , self . domain . slots ) else : logger . debug ( "Can't retrieve tracker matching" "sender id '{}' from SQL storage.  " "Returning `None` instead." . format ( sender_id ) )
Create a tracker from all previously stored events.
Create a tracker from all previously stored events .
"""Create a tracker from all previously stored events."""
self
sender_id
Text