Я впервые создаю простой ChatBot и застрял с ошибкой "xml.etree.ElementTree.ParseError: неправильно сформирован (неверный токен): строка 1, столбец 0"
Я уже решилpip, тензор потока, извлечение URL, ssl-сертификат, без имени модуля chatterbot, без имени модуля chatterbot-corpus проблемы
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
import os
bot = ChatBot('Bot')
bot.set_trainer(ListTrainer)
for files in os.listdir('D:/aaprojects/Chat bot 2019\chatterbot-corpus-1.2.0\chatterbot-corpus-1.2.0\chatterbot_corpus\data\english/'):
data = open ('D:/aaprojects/Chat bot 2019\chatterbot-corpus-1.2.0\chatterbot-corpus-1.2.0\chatterbot_corpus\data\english/' + files, 'r').readlines()
bot.train(data)
while True:
message = input('You:')
if message.strip() != 'Bye':
reply = bot.get_response(message)
print('ChatBot:',reply)
if message.strip()=='Bye':
print('ChatBot:Bye')
break
Сообщение об ошибке:
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0" i believe when its gone my ChatBot wold run