notice
This is documentation for Rasa Open Source Documentation v2.2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.3.x).
Version: 2.2.x
rasa.core.training.converters.story_responses_prefix_converter
StoryResponsePrefixConverter Objects
class StoryResponsePrefixConverter(TrainingDataConverter)
Converter responsible for ensuring that retrieval intent actions in stories
start with utter_
instead of respond_
.
filter
| @classmethod
| filter(cls, source_path: Path) -> bool
Only consider YAML story files.
Arguments:
source_path
- Path to the training data file.
Returns:
True
if the given file can is a YAML stories file, False
otherwise
convert_and_write
| @classmethod
| async convert_and_write(cls, source_path: Path, output_path: Path) -> None
Migrate retrieval intent responses to the new 2.0 format in stories.
Before 2.0, retrieval intent responses needed to start
with respond_
. Now, they need to start with utter_
.
Arguments:
source_path
- the source YAML stories fileoutput_path
- Path to the output directory.