Questions tagged [chatterbot]

ChatterBot is a machine learning, conversational dialog engine for creating chat bots.

ChatterBot is a machine learning, conversational dialog engine for creating chat bots. https://chatterbot.readthedocs.io/

256 questions
10
votes
9 answers

ChatterBot error- OSError: [E941] Can't find model 'en'

I tried running my first Chatterbot program (its from the PyPi page of Chatterbot), and when I run it, I get an error. The error is related to Spacy, but I am unable to find a solution. Here is the code: from chatterbot.trainers import…
su2187
  • 173
  • 1
  • 1
  • 9
5
votes
4 answers

Chatterbot Module Error ("AttributeError: module 'collections' has no attribute 'Hashable'")

I have been working on my own chatbot using the chatterbot module in python. Here is my code so far: from chatterbot import ChatBot from chatterbot.trainers import ListTrainer from chatterbot.trainers import ChatterBotCorpusTrainer my_bot =…
Jakob Long
  • 51
  • 1
  • 1
  • 4
5
votes
4 answers

Chatterbot : AttributeError: module 'time' has no attribute 'clock'

I am trying to create a chatbot, but since latest version of chatterbot was not getting installed on my pc so I installed chatterbot by using pip install chatterbot==1.0.4 and the following error is showing up. How do I resolve this? Below is the…
Tanish Batham
  • 53
  • 1
  • 7
5
votes
1 answer

Multitenancy in Google Dialogflow

My company is currently trying to build a multitenant chatbot using Google Dialogflow. We're exploring the tools at our disposal, but the documentation on the topic is still a bit scarce. Our understanding and definition of multitenancy, in this…
5
votes
1 answer

I'm getting error when using the chatterbot in python 3.x

So this was my code: from chatterbot.trainers import ListTrainer from chatterbot import chatbot bot = chatbot('Dona') conv = open('sample.txt', 'r').readlines() bot.set_trainer(ListTrainer) bot.train(conv) while True: query = input("You: ") …
4
votes
1 answer

"RuntimeError: implement_array_function method already has a docstring" when import the chatbot library

I'm trying to use the library Chatterbot, but I got this error RuntimeError: implement_array_function method already has a docstring I don't understand! Can you help me? from chatterbot import ChatBot from chatterbot.trainers import ListTrainer #…
4
votes
6 answers

Installing chatterbot but getting "ERROR: Could not build wheels for spacy which use PEP 517 and cannot be installed directly"

I'm trying to install chatterbot on macOS with python3 -m pip install chatterbot and every time I get the same error during the step "Installing build dependencies ... /" ERROR: Failed building wheel for spacy Running setup.py clean for…
jfar7
  • 41
  • 1
  • 1
  • 5
4
votes
4 answers

Installed chatbot but getting Error while importing ChatBot

from chatterbot import ChatBot from chatterbot.trainers import ListTrainer import os bot = ChatBot('Bot') bot.set_trainer(ListTrainer) for files in os.listdir('D:/Anaconda3/Lib/site-packages/chatterbot_corpus/data/english'): data =…
Nakul Sharma
  • 41
  • 1
  • 2
3
votes
0 answers

chatterbot mathematical evaluation times and minus not working

I am making a chatbot using the chatterbot library on python, I am using the mathematical evaluation logic adapter. when I use the chat bot can use the addition and division functions but not the multiplication and subtraction. any fixes would be…
3
votes
1 answer

How to fix error while installation of chatterbot? c1xx: fatal error C1083: Cannot open source file: 'preshed/maps.cpp': No such file or directory

I am trying to install the chatterBot . But I had tried many times but it is showing error to me. What's the problem with this? I had already upgraded pip too. But problem is not fixed. Also I am using python 3.9 version. Given below is the error.…
Yash2345
  • 31
  • 2
3
votes
1 answer

Python package installation error - py_compiler msvc not found

I'm trying to install the chatterbot package on Python 3.8.3 under Windows 10 64-bit and encountering a strange error that I suspect must be related to some directory or PATH setting which, I hope, is an easy fix ... I just don't know how…
Ross
  • 97
  • 4
3
votes
1 answer

chatterbot taking ages to return response

I have a piece of code I took from an example. It was running fine on repl.it, like a response after few secs. But, some time later, it started returning a response after like 1-3 mins, even more or never. That started happening suddenly on a run…
Nouman
  • 6,947
  • 7
  • 32
  • 60
3
votes
6 answers

cannot properly import the chatterbot and its corpus

I have used: | + - lib | | | + - chatterbot | | | + - chatterbot_corpus + - main.py I am getting this error: Traceback (most recent call last): File "main.py", line 1, in from lib.chatterbot.chatterbot import…
Balaji bala
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position 12

I'm developing a chatbot with the chatterbot library. The chatbot is in my native language --> Slovene, which has a lot of strange characters (for example: š, č, ž). I'm using python 2.7. When I try to train the bot, the library has trouble with the…
matiOS
  • 31
  • 1
  • 3
3
votes
1 answer

How to specify custom corpus path in Django for Chatterbot?

It seems one can use custom corpus json files by specify a path to the location. However, I'm confused by how that is done. The example provided by chatterbot isn't very clear. http://chatterbot.readthedocs.io/en/stable/training.html they do.…
Nonlin
  • 550
  • 1
  • 6
  • 18
1
2 3
17 18