def nlg_as_markdown(self) -> Text: """Generates the markdown representation of the response phrases (NLG) of TrainingData.""" from rasa.shared.nlu.training_data.formats import NLGMarkdownWriter return NLGMarkdownWriter().dumps(self)
def test_skip_markdown_writing_deprecation(): with pytest.warns(None) as warnings: NLGMarkdownWriter(ignore_deprecation_warning=True) assert not warnings
def test_markdown_writing_deprecation(): with pytest.warns(FutureWarning): NLGMarkdownWriter()