Python Forum

Full Version: Clearification on my next 5 lines for def a bot and training it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
5 bot = Chatbot('bot')
6 bot.set_trainer(ListTrainer)
7 for files in (file pathway help)
8 data = open( file pathway + files, 'r').readlines()
9 bot.train(data)

I would appreciate help on clearing up these lines of code, finding pathway to files and overall correctness of code