Closed psychemedia closed 4 years ago
To answer my own issue, one way to mitigate this is to clear the cell output explicitly:
from chatterbot import ChatBot
chatbot = ChatBot("Test")
# Clear the nltk output
from IPython.display import clear_output
clear_output()
Creating a new chatterbot in a Jupyter notebook code cell as:
results in
nltk
commentating on its own behaviour by displaying:as cell output. IPyhton
%%capture
magic is unsuccessful at suppressing this, as is trying to suppress warnings and logging.It would be useful if
nltk,data
could be run withquiet=True
setting, or allowquiet=True
to be passed through, eg via ChatBot("Test", quiet=True)`