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


Messages In This Thread
Clearification on my next 5 lines for def a bot and training it - by jgaza - Sep-26-2018, 05:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error doing CV for training and testing datasets Z47 2 1,005 Aug-17-2022, 08:41 PM
Last Post: Z47
  Iterate 2 large text files across lines and replace lines in second file medatib531 13 5,885 Aug-10-2020, 11:01 PM
Last Post: medatib531
  Training Quiz Unsolved simonsadiq 2 1,684 Jun-03-2020, 04:41 PM
Last Post: simonsadiq
  Need Recommendation for Training - Python for WebDev and Dashboards Cory 3 3,457 Apr-24-2018, 09:20 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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