Thanks man yours was informative despite the little errors as I learnt how to customize my own chat. Other videos I have watched always made us of the installed chats, which is not far from being trivial
Thank you! If you're using the new version of chatterbot, then you have to use: trainer = ListTrainer(bot) trainer.train(conv) instead of bot.set_trainer() bot.train()
updated code for latest version 1.0.4 (if you got any error in function set_trainer) from chatterbot.trainers import ListTrainer from chatterbot import ChatBot bot = ChatBot('Test') conv =open('sample.txt','r').readlines() trainer = ListTrainer(bot) trainer.train(conv) while True: request = input('You: ') response = bot.get_response(request) print('Bot: ',response)
i didn't get the bot it shows like this C:\Users\jogin>python train.py Traceback (most recent call last): File "train.py", line 1, in from chatterbot.trainers import ListTrainers ImportError: cannot import name 'ListTrainers' from 'chatterbot.trainers' (C:\Users\jogin\AppData\Local\Programs\Python\Python37\lib\site-packages\chatterbot\trainers.py)
if you have an issue with set_trainers, replace " bot.set_trainer(ListTrainer) bot.train(conv) " with " trainer = ListTrainer(bot) trainer.train(conv) "
When I try to run main.py with python3 it says: Traceback (most recent call last): File "main.py", line 1, in from chatterbot.trainers import ListTrainer ModuleNotFoundError: No module named 'chatterbot' But when I run with python : List Trainer: [####################] 100% You: Hi Traceback (most recent call last): File "main.py", line 13, in request = input('You: ') File "", line 1, in NameError: name 'Hi' is not defined
Traceback (most recent call last): File "main.py", line 13, in request = input('You: ') File "", line 1, in NameError: name 'Hi' is not defined Please help
Well, these type of Chabot will only answer the same responses everytime. A AI/Deep Learning chatbot can do much more, like extract info, generate new answers, learn from you, because they can at some level understand what you're saying, not just using some statements to create a response.
@@codigo_logo This is what I am aiming to do right now. I've seen so many tutorials through google searches, youtube, I have not found a tutorial that has worked yet. And all I keep seeing is, pip install chatterbot, then listtrainers, and then my_bot(name=PyBot and all this other stuff I type in EXACTLY what is shown in the tutorial and all I get is errors. Nothing works. So trying your video.
If you are getting this error, then for sure your version of chatterbox is different. you should use below code- bot = ChatBot('MyChatBot') conversation = open('chat.txt','r').readlines() trainer=ListTrainer(bot) trainer.train(conversation) chat.txt=> is your txt file name. Hope it will work for you.
Olá, eu e um grupo de amigos gostariamos de desenvolver um chatbot para o TCC, só que não queriamos usar uma interface pronta(tipo Wpp e messenger) queriamos criar nossa própria interface... Como você recomendaria eu fazer isso?
Chatterbot made some changes in its files where there is no set_trainer() method in chatbot file that's why this code is not working so plz upload new video.
Exucse me , my computer system is Win10 , that i also opend the cmd in manager , than i under the instruction "pip install chatterbot" , but it can't work. however it is allow to under another instruction (ex: pip install opencv-python ) Did you have any idea to solve this question ?
Well , Firstly Unzip the file which you Dowloaded , then there should the a setup.py file in there , copy the DIR of the chatbot folder which u unziped and cd that into the CMD , so that DIR is open - Then Try to do py setup.py and then it will install by itself , or try py -3.4 (or if u have another version write instead of 3.4) setup.py
Hi.... I am trying to make chatbot using your video but I am receiving following error message can you please guide me..... ImportError: No module named 'chatterbot_corpus'
Oye brother, tienes que ser exacto con estos tipos de lecciones. Muchas preguntas, debe de ser mas fluido y sin malentendidos. Todo debe de estar claro para que cualquier persona entendiende. Todo debe de ser explicado incluyendo los Pasos para programas que no tenemos.
if you have an issue with set_trainers, replace " bot.set_trainer(ListTrainer) bot.train(conv) " with " trainer = ListTrainer(bot) trainer.train(conv) "
Hi i have run main.py script but getting below issue request = input('You: ') ^ IndentationError: expected an indented block Below is the main.py script from chatterbot.trainners import ListTrainer from chatterbot import chatbot bot =ChatBoat('Test') conv = open('chats.txt', 'r').readlines() bot.set_trainer(ListTrainer) bot.train(conv) while True: request = input('You: ') response = bot.get_response(request) print('Bot: ', response) Note:I am using python 3.6 v
Hi really nice tutorial! I've one small query, instead of text response I want to redirect to a function. Eg: If the user type, "what is the time now" then it should go to 'time() function' .Can you please guide me how to do this ?Thanks in advance :)
Actually, it does learn. It's not the most sophisticated machine learning, but it creates its own table that stores the data and respond with the comment which has the highest confidence.
PS D:\xampp\htdocs\instagram_demo\chatbot\chatbot-demo> python main.py Traceback (most recent call last): File "main.py", line 1, in from chatterbot.trainers import ListTainer # method to train the chatbot ModuleNotFoundError: No module named 'chatterbot'
if you have an issue with set_trainers, replace " bot.set_trainer(ListTrainer) bot.train(conv) " with " trainer = ListTrainer(bot) trainer.train(conv) "
Fozy F0X ubuntu is overkill for laptops any laptop i tried it with they just heat up too fast. I use peppermint os and that works great especially for software development
Nope. This doesn't work either. I did EXACTLY what you did, word for word. Python 3.6 and all I got was this long error message. Traceback (most recent call last): File "F:\Program Files\Python\lib\site-packages umpy\core\__init__.py", line 22, in from . import multiarray File "F:\Program Files\Python\lib\site-packages umpy\core\multiarray.py", line 12, in from . import overrides File "F:\Program Files\Python\lib\site-packages umpy\core\overrides.py", line 7, in from numpy.core._multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "F:/Program Files/Python/main.py", line 4, in bot = ChatBot('Test') # creates the chatbot File "F:\Program Files\Python\lib\site-packages\chatterbot\chatterbot.py", line 28, in __init__ self.storage = utils.initialize_class(storage_adapter, **kwargs) File "F:\Program Files\Python\lib\site-packages\chatterbot\utils.py", line 33, in initialize_class return Class(*args, **kwargs) File "F:\Program Files\Python\lib\site-packages\chatterbot\storage\sql_storage.py", line 20, in __init__ super().__init__(**kwargs) File "F:\Program Files\Python\lib\site-packages\chatterbot\storage\storage_adapter.py", line 23, in __init__ 'tagger_language', languages.ENG File "F:\Program Files\Python\lib\site-packages\chatterbot\tagging.py", line 20, in __init__ import spacy File "F:\Program Files\Python\lib\site-packages\spacy\__init__.py", line 10, in from thinc.neural.util import prefer_gpu, require_gpu File "F:\Program Files\Python\lib\site-packages\thinc\__init__.py", line 5, in import numpy # noqa: F401 File "F:\Program Files\Python\lib\site-packages umpy\__init__.py", line 140, in from . import core File "F:\Program Files\Python\lib\site-packages umpy\core\__init__.py", line 48, in raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.6 from "F:\Program Files\Python\pythonw.exe" * The NumPy version is: "1.19.4" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: No module named 'numpy.core._multiarray_umath'
Hello, instead of use "bot.confidence" I used "response.confidence", it works :) Check what user "gunthercox" said (github.com/gunthercox/ChatterBot/issues/607 )
ChatBot' object has no attribute 'set_trainer' please help how can i slove this problem ...............................??? python Version is 3.5.0 i install Chatterbot with the help of pip3 install Chatterbot
if you have an issue with set_trainers, replace " bot.set_trainer(ListTrainer) bot.train(conv) " with " trainer = ListTrainer(bot) trainer.train(conv) "
Sorry, I can't 'cuz I don't know. But I do know that some research has been made regarding this using Deep Learning: chatbotsmagazine.com/contextual-chat-bots-with-tensorflow-4391749d0077
fix every bug :::: AttributeError: 'ChatBot' object has no attribute 'set_trainer' from chatterbot import ChatBot #from chatterbot.trainers import ChatterBotCorpusTrainer from chatterbot.trainers import ListTrainer import os Jarvis = ChatBot('Jarvis') # Create a new trainer for the chatbot dossier = "conversation" #Jarvis.set_trainer(ListTrainer) trainer = ListTrainer(Jarvis) for fichier in os.listdir(dossier): causeries = open(dossier+'/'+fichier, 'r').readlines() print(' [+] chargement de la conversation : '+fichier) trainer.train(causeries) while True: request = input('Toi : ') response = Jarvis.get_response(request) print('Jarvis : '+str(response))
first ) pip install chatterbot_corpus then ) correct the PyYAML by installing the both version using pip install --ignore-installed PyYAML==3.5 edit few lines like this from chatterbot import ChatBot #from chatterbot.trainers import ChatterBotCorpusTrainer from chatterbot.trainers import ListTrainer import os Jarvis = ChatBot('Jarvis') # Create a new trainer for the chatbot dossier = "conversation" #Jarvis.set_trainer(ListTrainer) trainer = ListTrainer(Jarvis) for fichier in os.listdir(dossier): causeries = open(dossier+'/'+fichier, 'r').readlines() print(' [+] chargement de la conversation : '+fichier) trainer.train(causeries) while True: request = input('Toi : ') response = Jarvis.get_response(request) print('Jarvis : '+str(response))
Teu inglês é mt bom cara, sério. Parece que estou assistindo um tutorial internacional nativo
Valeu.
If "DID" then "WATCH" not "WATCHED", no mais um verdadeiro show de bola, muito obrigado mesmo pela aula! Saudações de Tokyo!
Thanks man yours was informative despite the little errors as I learnt how to customize my own chat. Other videos I have watched always made us of the installed chats, which is not far from being trivial
Thank you!
If you're using the new version of chatterbot, then you have to use:
trainer = ListTrainer(bot)
trainer.train(conv)
instead of
bot.set_trainer()
bot.train()
Very clean and simple
Thank You :)
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
bot = ChatBot('teste')
conv = open('chats.txt', 'r').readlines()
trainer = ListTrainer(bot)
trainer.train(conv)
while True:
try:
request = input('you: ')
response = bot.get_response(request)
print('bot:', response)
except(KeyboardInterrupt, EOFError, SystemExit):
break
Valeu amigo estou aprendendo Python para spark, mas vou fazer esse tutorial para praticar
Legal.
I have an error 'ChatBot' object has no attribute 'set_trainer'
same here....
updated code for latest version 1.0.4 (if you got any error in function set_trainer)
from chatterbot.trainers import ListTrainer
from chatterbot import ChatBot
bot = ChatBot('Test')
conv =open('sample.txt','r').readlines()
trainer = ListTrainer(bot)
trainer.train(conv)
while True:
request = input('You: ')
response = bot.get_response(request)
print('Bot: ',response)
Okay okay okay(x50)
Speach = talk.read(you)
Speach = str.replace(Speach,"okay","")
what is the use of list trainer there what does it do
i didn't get the bot
it shows like this
C:\Users\jogin>python train.py
Traceback (most recent call last):
File "train.py", line 1, in
from chatterbot.trainers import ListTrainers
ImportError: cannot import name 'ListTrainers' from 'chatterbot.trainers' (C:\Users\jogin\AppData\Local\Programs\Python\Python37\lib\site-packages\chatterbot\trainers.py)
till so many day's, i'm trying but it doesn't get
did u resolve this issue
if you have an issue with set_trainers, replace " bot.set_trainer(ListTrainer)
bot.train(conv) "
with " trainer = ListTrainer(bot)
trainer.train(conv) "
Traceback (most recent call last):
File "main.py", line 19, in
request = input('You: ')
File "", line 1, in
NameError: name 'chatterbot' is not defin
Você importou o chatterbot?
When I try to run main.py with python3 it says:
Traceback (most recent call last):
File "main.py", line 1, in
from chatterbot.trainers import ListTrainer
ModuleNotFoundError: No module named 'chatterbot'
But when I run with python :
List Trainer: [####################] 100%
You: Hi
Traceback (most recent call last):
File "main.py", line 13, in
request = input('You: ')
File "", line 1, in
NameError: name 'Hi' is not defined
request=raw_input('you:')
put "raw_" before input
use a 32 bit
and make sure you made a another system variable for the path for the chatterbot-master folder
RapDuo use raw_input and remove brackets from print function
If you want to access to the confidence value:
response.confidence
Traceback (most recent call last):
File "main.py", line 13, in
request = input('You: ')
File "", line 1, in
NameError: name 'Hi' is not defined
Please help
Why there is a need of using AI and ML algo.s for building good bots if it seems so easy with this ?
Can you please tell ?
Well, these type of Chabot will only answer the same responses everytime. A AI/Deep Learning chatbot can do much more, like extract info, generate new answers, learn from you, because they can at some level understand what you're saying, not just using some statements to create a response.
@@codigo_logo This is what I am aiming to do right now. I've seen so many tutorials through google searches, youtube, I have not found a tutorial that has worked yet. And all I keep seeing is, pip install chatterbot, then listtrainers, and then my_bot(name=PyBot and all this other stuff I type in EXACTLY what is shown in the tutorial and all I get is errors. Nothing works. So trying your video.
great ! thank you sir, ajith r s
Can we integrate chat bot with a java application or it can only be integrated with django and flask app
Hi, Is there any way to make model which can read any given document like pdf and provide index where to look for ?
An error occurred when I ran the code: AttributeError: 'ChatBot' object has no attribute 'set_trainer'
help me :((
If you are getting this error, then for sure your version of chatterbox is different.
you should use below code-
bot = ChatBot('MyChatBot')
conversation = open('chat.txt','r').readlines()
trainer=ListTrainer(bot)
trainer.train(conversation)
chat.txt=> is your txt file name.
Hope it will work for you.
Olá, eu e um grupo de amigos gostariamos de desenvolver um chatbot para o TCC, só que não queriamos usar uma interface pronta(tipo Wpp e messenger) queriamos criar nossa própria interface... Como você recomendaria eu fazer isso?
Iam installed chatterbot
But while importing it shows errors
same prob
@@himanshujoshi2644 same
@@Gaztoof I solved my problem using anaconda navigator
Chatterbot made some changes in its files where there is no set_trainer() method in chatbot file that's why this code is not working so plz upload new video.
from chatterbot.trainers import ListTrainer
from chatterbot import ChatBot
bot = ChatBot('Test')
conv =open('sample.txt','r').readlines()
trainer = ListTrainer(bot)
trainer.train(conv)
while True:
request = input('You: ')
response = bot.get_response(request)
print('Bot: ',response)
did u resolve this issue and how
It's resolved.
@@manishmeshram51 how
Waiting
Exucse me , my computer system is Win10 , that i also opend the cmd in manager ,
than i under the instruction "pip install chatterbot" , but it can't work.
however it is allow to under another instruction (ex: pip install opencv-python )
Did you have any idea to solve this question ?
Well , Firstly Unzip the file which you Dowloaded , then there should the a setup.py file in there , copy the DIR of the chatbot folder which u unziped and cd that into the CMD , so that DIR is open - Then Try to do py setup.py and then it will install by itself , or try py -3.4 (or if u have another version write instead of 3.4) setup.py
Hi....
I am trying to make chatbot using your video but I am receiving following error message can you please guide me.....
ImportError: No module named 'chatterbot_corpus'
did you resolve
@@friend18best yes I have solved it....
thanks
@@zubadibrahim5657 how?
What have i to write in the code to have the ability to tell him that his last answer is wrong and he must not repeat it for this question ever again?
hey i have already built a Chatbot nd running it from cmd prompt but i like to create gui for my chatbot can anyone pls tell how can I do that
Using some GUI library such as WxWidgets, Pyglet, PyQt.
Código Logo - Programação e Inteligência Artificial
hey bro could u plz guide me
can you explain what should i do in exchange for os.listdir in windows everything else is working fine and thanks.....
Do I always need to train again every time when I start?
No, you need to set an argument:
bot = Chatbot('Test', read_only=True)
that's it
Oye brother, tienes que ser exacto con estos tipos de lecciones. Muchas preguntas, debe de ser mas fluido y sin malentendidos. Todo debe de estar claro para que cualquier persona entendiende. Todo debe de ser explicado incluyendo los Pasos para programas que no tenemos.
Por ejemplo, donde bajar packetes de python specificos. Y ese .py que tu tienes viene de Verbot... Verdad?
Desculpe me, ho se hablar español, pero stoy feliz con su comentario y yo se que algunas vezes yo esqueso algun detalhes.
Code: pastebin.com/x44edmVF
if you have an issue with set_trainers, replace " bot.set_trainer(ListTrainer)
bot.train(conv) "
with " trainer = ListTrainer(bot)
trainer.train(conv) "
Hi i have run main.py script but getting below issue
request = input('You: ')
^
IndentationError: expected an indented block
Below is the main.py script
from chatterbot.trainners import ListTrainer
from chatterbot import chatbot
bot =ChatBoat('Test')
conv = open('chats.txt', 'r').readlines()
bot.set_trainer(ListTrainer)
bot.train(conv)
while True:
request = input('You: ')
response = bot.get_response(request)
print('Bot: ', response)
Note:I am using python 3.6 v
from chatterbot.trainners import ListTrainer
from chatterbot import chatbot
bot =ChatBoat('Test')
conv = open('chats.txt', 'r').readlines()
bot.set_trainer(ListTrainer)
bot.train(conv)
while True:
request = input('You: ')
response = bot.get_response(request)
print('Bot: ', response)
Você tem que indentar o código.
thanks
Give a gap between the while loop and input command
Eg: while True:
Say=input('you')
Hi really nice tutorial! I've one small query, instead of text response I want to redirect to a function. Eg: If the user type, "what is the time now" then it should go to 'time() function' .Can you please guide me how to do this ?Thanks in advance :)
do something like this..
if "time" in user_input:
time()
else:
# get response from chatterbot
this is not an Artificial intellegence, this is just reading lines in Que..., its totally waste..no Intellengence required
Actually, it does learn. It's not the most sophisticated machine learning, but it creates its own table that stores the data and respond with the comment which has the highest confidence.
PS D:\xampp\htdocs\instagram_demo\chatbot\chatbot-demo> python main.py
Traceback (most recent call last):
File "main.py", line 1, in
from chatterbot.trainers import ListTainer # method to train the chatbot
ModuleNotFoundError: No module named 'chatterbot'
run windows 7 64 bit Os ?
can you also put your own native language for your conversations
bot.set_trainer(ListTrainer)
bot.train(conv)
Getting error like
Instance of 'ChatBot' has no 'set_trainer' member
can any one help me please
Same here i m to facing a same issue
if you have an issue with set_trainers, replace " bot.set_trainer(ListTrainer)
bot.train(conv) "
with " trainer = ListTrainer(bot)
trainer.train(conv) "
0:23 Don't you fucking dare type sudo!
which operating system are you using?
its ubuntu
It's the OS which i'm using :O BTW it's Ubuntu 16.04
Ubuntu is bae bro, been using it for a month now for programming
ubuntu
Fozy F0X ubuntu is overkill for laptops any laptop i tried it with they just heat up too fast. I use peppermint os and that works great especially for software development
How to remove no value for search_text was available on the provided input
Nope. This doesn't work either. I did EXACTLY what you did, word for word. Python 3.6 and all I got was this long error message.
Traceback (most recent call last):
File "F:\Program Files\Python\lib\site-packages
umpy\core\__init__.py", line 22, in
from . import multiarray
File "F:\Program Files\Python\lib\site-packages
umpy\core\multiarray.py", line 12, in
from . import overrides
File "F:\Program Files\Python\lib\site-packages
umpy\core\overrides.py", line 7, in
from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:/Program Files/Python/main.py", line 4, in
bot = ChatBot('Test') # creates the chatbot
File "F:\Program Files\Python\lib\site-packages\chatterbot\chatterbot.py", line 28, in __init__
self.storage = utils.initialize_class(storage_adapter, **kwargs)
File "F:\Program Files\Python\lib\site-packages\chatterbot\utils.py", line 33, in initialize_class
return Class(*args, **kwargs)
File "F:\Program Files\Python\lib\site-packages\chatterbot\storage\sql_storage.py", line 20, in __init__
super().__init__(**kwargs)
File "F:\Program Files\Python\lib\site-packages\chatterbot\storage\storage_adapter.py", line 23, in __init__
'tagger_language', languages.ENG
File "F:\Program Files\Python\lib\site-packages\chatterbot\tagging.py", line 20, in __init__
import spacy
File "F:\Program Files\Python\lib\site-packages\spacy\__init__.py", line 10, in
from thinc.neural.util import prefer_gpu, require_gpu
File "F:\Program Files\Python\lib\site-packages\thinc\__init__.py", line 5, in
import numpy # noqa: F401
File "F:\Program Files\Python\lib\site-packages
umpy\__init__.py", line 140, in
from . import core
File "F:\Program Files\Python\lib\site-packages
umpy\core\__init__.py", line 48, in
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.6 from "F:\Program Files\Python\pythonw.exe"
* The NumPy version is: "1.19.4"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
How to use Confidence function?? My bot is also giving absurd answers?? Please Help.
They removed the confidence function in the new version from the ChatBot class.
Hello, instead of use "bot.confidence" I used "response.confidence", it works :)
Check what user "gunthercox" said (github.com/gunthercox/ChatterBot/issues/607 )
Is there a way so that the training progress doesnt print
I don't know.
ChatBot' object has no attribute 'set_trainer'
please help how can i slove this problem ...............................???
python Version is 3.5.0
i install Chatterbot with the help of pip3 install Chatterbot
if you have an issue with set_trainers, replace " bot.set_trainer(ListTrainer)
bot.train(conv) "
with " trainer = ListTrainer(bot)
trainer.train(conv) "
Can you please explain how handle context this chatterbot?
Sorry, I can't 'cuz I don't know. But I do know that some research has been made regarding this using Deep Learning: chatbotsmagazine.com/contextual-chat-bots-with-tensorflow-4391749d0077
I actually found the answer by uninstalling the python 3.6 and install python3.5. The problem solved.
doeun kol how? Isn't the newer version better?
How to fix the error of cannot import name chatbot..plzz help
which OS you r using?
@@amarprajapati2370 windows 10 and i have same problemm
I have a problem with sqlite3 operationError. Can you help?
Could you paste the error here?
When I am typing command for bot I need to use single quotes (') why???
fix every bug :::: AttributeError: 'ChatBot' object has no attribute 'set_trainer'
from chatterbot import ChatBot
#from chatterbot.trainers import ChatterBotCorpusTrainer
from chatterbot.trainers import ListTrainer
import os
Jarvis = ChatBot('Jarvis')
# Create a new trainer for the chatbot
dossier = "conversation"
#Jarvis.set_trainer(ListTrainer)
trainer = ListTrainer(Jarvis)
for fichier in os.listdir(dossier):
causeries = open(dossier+'/'+fichier, 'r').readlines()
print(' [+] chargement de la conversation : '+fichier)
trainer.train(causeries)
while True:
request = input('Toi : ')
response = Jarvis.get_response(request)
print('Jarvis : '+str(response))
Working fine but giving answers which are not in the file
Can i use this and make it a Bot for Twitter?
No module named en
Plz....... help
File "chat.py", line 1, in
from chatterbot.trainers import ListTrainer
ImportError: No module named 'chatterbot'
Esse erro deu no windows e no linux, ja instalei a biblioteca
instalou no windows?
Linux e Windows mesmo erro. Como se nao encontra-se a biblioteca
simply install this package via pip: pip install chatterbot
you will require python3 version
How do I exit main.py in order to start again?
Do you mean create another file?
if response=="bye"
break
?
ImportError: No module named 'chatterbot_corpus'
first ) pip install chatterbot_corpus
then ) correct the PyYAML by installing the both version using pip install --ignore-installed PyYAML==3.5
edit few lines like this
from chatterbot import ChatBot
#from chatterbot.trainers import ChatterBotCorpusTrainer
from chatterbot.trainers import ListTrainer
import os
Jarvis = ChatBot('Jarvis')
# Create a new trainer for the chatbot
dossier = "conversation"
#Jarvis.set_trainer(ListTrainer)
trainer = ListTrainer(Jarvis)
for fichier in os.listdir(dossier):
causeries = open(dossier+'/'+fichier, 'r').readlines()
print(' [+] chargement de la conversation : '+fichier)
trainer.train(causeries)
while True:
request = input('Toi : ')
response = Jarvis.get_response(request)
print('Jarvis : '+str(response))
Manjando de inglês hein ;-;
how can i add quick replies
please provide source code
Bro plz help
I'm getting traceback error, there's an attribute error : module 'time' has no attribute 'clock' ,
No module named en
Plz....... help
No module named en
Plz....... help
No module named en
Plz....... help