Version: 3.x
rasa.core.evaluation.markers
InvalidMarkersConfig Objects
class InvalidMarkersConfig(RasaException)
Exception that can be raised when markers config is not valid.
MarkerConfig Objects
class MarkerConfig()
A class that represents the markers config.
A markers config contains the markers and the conditions for when they apply. The class reads the config, validates the schema, and validates the conditions.
empty_config
| @classmethod
| empty_config(cls) -> Dict
Returns an empty config file.
load_config_from_path
| @classmethod
| load_config_from_path(cls, path: Union[Text, Path]) -> Dict
Loads the config from a file or directory.
from_file
| @classmethod
| from_file(cls, path: Text) -> Dict
Loads the config from a YAML file.
from_yaml
| @classmethod
| from_yaml(cls, yaml: Text, filename: Text = "") -> Dict
Loads the config from YAML text after validating it.
from_directory
| @classmethod
| from_directory(cls, path: Text) -> Dict
Loads and appends multiple configs from a directory tree.
validate_config
| @classmethod
| validate_config(cls, config: Dict, filename: Text = "") -> bool
Validates the markers config according to the schema.
config_format_spec
| @staticmethod
| config_format_spec() -> Dict
Returns expected schema for a markers config.