rasa/core/training/generator.py
def copy(self, sender_id: Text = "") -> 'TrackerWithCachedStates':
        """Creates a duplicate of this tracker.

        A new tracker will be created and all events
        will be replayed."""

        # This is an optimization, we could use the original copy, but
        # the states would be lost and we would need to recalculate them

        tracker = self.init_copy()
        tracker.sender_id = sender_id

        for event in self.events:
            tracker.update(event, skip_states=True)

        tracker._states = copy.copy(self._states)

        return tracker
Creates a duplicate of this tracker.

        A new tracker will be created and all events
        will be replayed.
Creates a duplicate of this tracker.
A new tracker will be created and all events
will be replayed.
Creates a duplicate of this tracker . A new tracker will be created and all events will be replayed .
def copy(self, sender_id: Text = "") -> 'TrackerWithCachedStates':
        tracker = self.init_copy()
        tracker.sender_id = sender_id
        for event in self.events:
            tracker.update(event, skip_states=True)
        tracker._states = copy.copy(self._states)
        return tracker
def copy ( self , sender_id : Text = "" ) -> 'TrackerWithCachedStates' : tracker = self . init_copy ( ) tracker . sender_id = sender_id for event in self . events : tracker . update ( event , skip_states = True ) tracker . _states = copy . copy ( self . _states ) return tracker
Creates a duplicate of this tracker.
Creates a duplicate of this tracker .
"""Creates a duplicate of this tracker.

        A new tracker will be created and all events
        will be replayed.""" # This is an optimization, we could use the original copy, but # the states would be lost and we would need to recalculate them
self
sender_id
Text