chatbot

Encoder-Decoder LSTM model gives 'nan' loss and predictions

Encoder-Decoder LSTM model gives 'nan' loss and predictions Question: I am trying to create a basic encoder-decoder model for training a chatbot. X contains the questions or human dialogues and Y contains the bot answers. I have padded the sequences to the max size of input and output sentences. X.shape = (2363, 242, 1) and …

Total answers: 1

Chatbot that will answer from the given Information/Documents

Chatbot that will answer from the given Information/Documents Question: I want to make a chatbot that will answer the questions based on the given document. E.g, if I have hundreds of documents and I want to get some information from it but don’t know which information is on which line of the page so I …

Total answers: 4

Python chatbot "TypeError: argument of type 'NoneType' is not iterable"

Python chatbot "TypeError: argument of type 'NoneType' is not iterable" Question: I’m creating a chatbot that should simply respond back to the user when the user asks it a specific question the bot will detect it the code and respond back with the correct output. But I need help resolving a TypeError. My code: user_name …

Total answers: 1

ImportError: cannot import name 'chatbot' from 'chatterbot'

ImportError: cannot import name 'chatbot' from 'chatterbot' Question: hey guys I’m getting this error, trying to build a chatbot Traceback (most recent call last): File “C:UsersEdwrdAppDataLocalProgramsPythonPython37-32FRIDAY.py”, line 2, in <module> from chatterbot import Chatbot ImportError: cannot import name ‘Chatbot’ from ‘chatterbot’ (C:UsersgabriAppDataLocalProgramsPythonPython37libsite-packageschatterbot__init__.py) Asked By: user11866502 || Source Answers: You need to use from chatterbot import …

Total answers: 3

I am building a chatbot in python. I am having trouble running the code

I am building a chatbot in python. I am having trouble running the code Question: import random userKeywords = {“hi”,”hello”,”wassup”,”what’sup”,”greetings”,”sup”,”henlo”,”que onda”,”hola”,”hey”,”waddup”} machineResponses = {“hello”, “Hello there, I am a bot”, “greetings from inside this computer”} def machineAnswer(message): for key in userKeywords: if key == message: return random.choice(machineResponses) def respondTo(message): print(machineAnswer(message)) respondTo(“hello”) I am building a …

Total answers: 4

Any tutorials for developing chatbots?

Any tutorials for developing chatbots? Question: As a engineering student, I would like to make a chat bot using python. So, I searched a lot but couldn’t really find stuff that would teach me or give me some concrete information to build a intelligent chat bot. I would like to make a chatbot that gives …

Total answers: 2