notice
This is documentation for Rasa & Rasa Pro Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).
Version: 2.x
rasa.nlu.training_data.converters.nlu_markdown_to_yaml_converter
NLUToYamlConverter Objects
class NLUToYamlConverter(TrainingDataConverter)
Converts NLU Rasa JSON and Markdown files to Rasa YAML format.
filter
| @classmethod
| filter(cls, source_path: Path) -> bool
Checks if the given training data file can be converted to YAML
.
Works with NLU data in Markdown or JSON format.
Arguments:
source_path
- Path to the training data file.
Returns:
True
if the given file can be converted, False
otherwise
convert_and_write
| @classmethod
| async convert_and_write(cls, source_path: Path, output_path: Path) -> None
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.