def __init__(self, size=None, path=None):
        """
        Initializes the Dialogue Episode Recorder

        :param size: size of the experience (how many dialogues to store)
        :param path: path to save / load the experience

        """
        self.dialogues = []
        self.size = size
        self.current_dialogue = None
        self.cumulative_reward = 0
        self.path = path

        if path:
            self.load(path)

        Initializes the Dialogue Episode Recorder

        :param size: size of the experience (how many dialogues to store)
        :param path: path to save / load the experience

        
plato/utilities/dialogue_episode_recorder.py