Skip to content

Commit

Permalink
Add note about possible error
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Jun 9, 2017
1 parent 8ddb066 commit 1b5da4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chatterbot/trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ def train(self):
if sys.version_info[0] > 2:
# Specify the encoding in Python versions 3 and up
file_kwargs['encoding'] = 'utf-8'
# WARNING: This might fail to read a unicode corpus file in Python 2.x

for file in glob.iglob(extracted_corpus_path):
self.logger.info('Training from: {}'.format(file))
Expand Down

0 comments on commit 1b5da4c

Please sign in to comment.