Skip to content

Commit

Permalink
Move read-only exxample to the examples page
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Dec 2, 2017
1 parent a1db771 commit 86e9be0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ ChatterBot data can be saved and retrieved from SQL databases.
.. literalinclude:: ../examples/sql/memory_sql_example.py
:language: python

Read only mode
==============

Your chat bot will learn based on each new input statement it receives.
If you want to disable this learning feature after your bot has been trained,
you can set `read_only=True` as a parameter when initializing the bot.

.. code-block:: python
chatbot = ChatBot("Johnny Five", read_only=True)
More Examples
=============

Expand Down
11 changes: 0 additions & 11 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,3 @@ Get a response
response = chatbot.get_response("Good morning!")
print(response)
Read only mode
==============

Your ChatterBot will learn based on each new input statement it receives.
If you want to disable this learning feature after your bot has been trained,
you can set `read_only=True` as a parameter when initializing the bot.

.. code-block:: python
chatbot = ChatBot("Johnny Five", read_only=True)

0 comments on commit 86e9be0

Please sign in to comment.