rasa/core/policies/fallback.py
def persist(self, path: Text) -> None:
        """Persists the policy to storage."""

        config_file = os.path.join(path, 'fallback_policy.json')
        meta = {
            "priority": self.priority,
            "nlu_threshold": self.nlu_threshold,
            "core_threshold": self.core_threshold,
            "fallback_action_name": self.fallback_action_name
        }
        utils.create_dir_for_file(config_file)
        utils.dump_obj_as_json_to_file(config_file, meta)
Persists the policy to storage.
Persists the policy to storage.
Persists the policy to storage .
def persist(self, path: Text) -> None:
        config_file = os.path.join(path, 'fallback_policy.json')
        meta = {
            "priority": self.priority,
            "nlu_threshold": self.nlu_threshold,
            "core_threshold": self.core_threshold,
            "fallback_action_name": self.fallback_action_name
        }
        utils.create_dir_for_file(config_file)
        utils.dump_obj_as_json_to_file(config_file, meta)
def persist ( self , path : Text ) -> None : config_file = os . path . join ( path , 'fallback_policy.json' ) meta = { "priority" : self . priority , "nlu_threshold" : self . nlu_threshold , "core_threshold" : self . core_threshold , "fallback_action_name" : self . fallback_action_name } utils . create_dir_for_file ( config_file ) utils . dump_obj_as_json_to_file ( config_file , meta )
Persists the policy to storage.
Persists the policy to storage .
"""Persists the policy to storage."""
self
path
Text