fixing errors in python visual studio 2022

I am trying to code a chatbot but it has the following errors:

Expected one or more symbol names after import Line:4.
Expected one or more symbol names after import Line:6.
Expected one or more symbol names after import Line:8.
Invalid character “\u21” in token Line:1.
Invalid character “\u21” in token Line:2.
Unexpected indentation Line:4.
Unindent not expected Line: 7.

I need help trying to fix the errors. the code used to have more errors but I fixed the ones I could.
Code below:

!pip install chatterbot
!pip install chatterbot_corpus

 from chatterbot import
 import ChatBot
 from chatterbot.trainers import
import ListTrainer
from chatterbot.trainers import
import ChatterBotCorpusTrainer

bot = ChatBot(
  'AIBot',
  storage_adapter="chatterbot.storage.SQLStorageAdapter",
  database_uri = 'sqlite:///database.sqlite3'
)
#opening the text file
example1 = "/content/dataset2.txt"
file1 = open(example1, "r")
training_data = file1.read()
splitlines()

#training the bot
trainer = ListTrainer(bot)
trainer.train(training_data)

#testing the bot
print("enter 'quit' to stop")
while True:
  user_txt = input("You: ")
if user_txt == 'quit':
    print("Bot:", bot.get_response(user_txt))

I tried to fix some of the errors but it was difficult.

Read more here: Source link