Version: 3.x

rasa.graph_components.providers.story_graph_provider

StoryGraphProvider Objects

class StoryGraphProvider(GraphComponent)

Provides the training data from stories.

__init__

def __init__(config: Dict[Text, Any]) -> None

Creates provider from config.

get_default_config

@staticmethod
def get_default_config() -> Dict[Text, Any]

Returns default configuration (see parent class for full docstring).

create

@classmethod
def create(cls, config: Dict[Text, Any], model_storage: ModelStorage,
resource: Resource,
execution_context: ExecutionContext) -> StoryGraphProvider

Creates component (see parent class for full docstring).

provide

def provide(importer: TrainingDataImporter) -> StoryGraph

Provides the story graph from the training data.

Arguments:

  • importer - instance of TrainingDataImporter.

Returns:

The story graph containing stories and rules used for training.