Skip to content

Commit

Permalink
Document training path methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Jan 2, 2017
1 parent ac480d1 commit 3e6135e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/django/training.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
9 changes: 9 additions & 0 deletions docs/training.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------------------
Expand Down

0 comments on commit 3e6135e

Please sign in to comment.