Python Forum
Clearification on my next 5 lines for def a bot and training it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clearification on my next 5 lines for def a bot and training it
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Iterate 2 large text files across lines and replace lines in second file medatib531 13 9,232 Aug-10-2020, 11:01 PM
Last Post: medatib531
  Training Quiz Unsolved simonsadiq 2 2,325 Jun-03-2020, 04:41 PM
Last Post: simonsadiq

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020