notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.x).

Version: Master/Unreleased

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
def empty_config(cls) -> Dict

Returns an empty config file.

load_config_from_path

@classmethod
def load_config_from_path(cls, path: Union[Text, Path]) -> Dict

Loads the config from a file or directory.

from_file

@classmethod
def from_file(cls, path: Text) -> Dict

Loads the config from a YAML file.

from_yaml

@classmethod
def from_yaml(cls, yaml: Text, filename: Text = "") -> Dict

Loads the config from YAML text after validating it.

from_directory

@classmethod
def from_directory(cls, path: Text) -> Dict

Loads and appends multiple configs from a directory tree.

validate_config

@classmethod
def validate_config(cls, config: Dict, filename: Text = "") -> bool

Validates the markers config according to the schema.

config_format_spec

@staticmethod
def config_format_spec() -> Dict

Returns expected schema for a markers config.