From 3e6135eb59dd111cf87ec0933026bc7786852e3f Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Mon, 2 Jan 2017 17:00:17 -0500 Subject: [PATCH] Document training path methods --- docs/django/training.rst | 4 ++++ docs/training.rst | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/docs/django/training.rst b/docs/django/training.rst index 36c5439b8..9e58eaedf 100644 --- a/docs/django/training.rst +++ b/docs/django/training.rst @@ -29,4 +29,8 @@ Django settings. ] } +.. note:: + + You can also specify paths to corpus files or directories of corpus files in the :code:`training_data` list. + See the documentation for the :ref:`training-classes` for other training class options that can be used here. diff --git a/docs/training.rst b/docs/training.rst index ec2184196..ada8bac72 100644 --- a/docs/training.rst +++ b/docs/training.rst @@ -111,6 +111,15 @@ conversations corpora then you would simply specify them. "chatterbot.corpus.english.conversations" ) +You can also specify file paths to corpus files or directories of corpus files when calling the :code:`train` method. + +.. code-block:: python + + chatterbot.train( + "./data/greetings_corpus/custom.corpus.json", + "./data/my_corpus/" + ) + Training with the Twitter API -----------------------------