コード例 #1
0
ファイル: training_data.py プロジェクト: suryatmodulus/rasa
    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)
コード例 #2
0
def test_skip_markdown_writing_deprecation():
    with pytest.warns(None) as warnings:
        NLGMarkdownWriter(ignore_deprecation_warning=True)

    assert not warnings
コード例 #3
0
def test_markdown_writing_deprecation():
    with pytest.warns(FutureWarning):
        NLGMarkdownWriter()