rasa/core/config.py
def load(config_file: Optional[Text]) -> List['Policy']:
    """Load policy data stored in the specified file."""
    from rasa.core.policies import PolicyEnsemble

    if config_file and os.path.isfile(config_file):
        config_data = utils.read_yaml_file(config_file)
    else:
        raise ValueError("You have to provide a valid path to a config file. "
                         "The file '{}' could not be found."
                         "".format(os.path.abspath(config_file)))

    return PolicyEnsemble.from_dict(config_data)
Load policy data stored in the specified file.
Load policy data stored in the specified file.
Load policy data stored in the specified file .
def load(config_file: Optional[Text]) -> List['Policy']:
    from rasa.core.policies import PolicyEnsemble
    if config_file and os.path.isfile(config_file):
        config_data = utils.read_yaml_file(config_file)
    else:
        raise ValueError("You have to provide a valid path to a config file. "
                         "The file '{}' could not be found."
                         "".format(os.path.abspath(config_file)))
    return PolicyEnsemble.from_dict(config_data)
def load ( config_file : Optional [ Text ] ) -> List [ 'Policy' ] : from rasa . core . policies import PolicyEnsemble if config_file and os . path . isfile ( config_file ) : config_data = utils . read_yaml_file ( config_file ) else : raise ValueError ( "You have to provide a valid path to a config file. " "The file '{}' could not be found." "" . format ( os . path . abspath ( config_file ) ) ) return PolicyEnsemble . from_dict ( config_data )
Load policy data stored in the specified file.
Load policy data stored in the specified file .
"""Load policy data stored in the specified file."""
config_file
Optional[Text]