notice
This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.5.x).
rasa.utils.converter
TrainingDataConverter Objects
Interface for any training data format conversion.
filter
Checks if the concrete implementation of TrainingDataConverter can convert training data file.
Arguments:
source_path
- Path to the training data file.
Returns:
True
if the given file can be converted, False
otherwise
convert_and_write
Converts the given training data file and saves it to the output directory.
Arguments:
source_path
- Path to the training data file.output_path
- Path to the output directory.
generate_path_for_converted_training_data_file
Generates path for a training data file converted to YAML format.
Arguments:
source_file_path
- Path to the original file.output_directory
- Path to the target directory.
Returns:
Path to the target converted training data file.
converted_file_suffix
Returns suffix that should be appended to the converted training data file.