Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update training parameter for docs and examples.
- Loading branch information
1 parent
287dbae
commit 796380d
Showing
6 changed files
with
22 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
from chatterbot import ChatBot | ||
from chatterbot.trainers import ChatterBotCorpusTrainer | ||
|
||
''' | ||
This is an example showing how to create an export file from | ||
an existing chat bot that can then be used to train other bots. | ||
''' | ||
|
||
chatbot = ChatBot("Export Example Bot") | ||
chatbot = ChatBot( | ||
'Export Example Bot', | ||
trainer='chatterbot.trainers.ChatterBotCorpusTrainer' | ||
) | ||
|
||
# First, lets train our bot with some data | ||
chatbot.set_trainer(ChatterBotCorpusTrainer) | ||
chatbot.train("chatterbot.corpus.english") | ||
chatbot.train('chatterbot.corpus.english') | ||
|
||
# Now we can export the data to a file | ||
chatbot.trainer.export_for_training('./myfile.json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters