Intelligent AI Chatbot in Python

Intelligent AI Chatbot in Python

NeuralNine

3 года назад

920,584 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Angelo Adame
Angelo Adame - 29.10.2023 09:11

Can i deploy it in website?

Ответить
Matthias Oladele
Matthias Oladele - 13.10.2023 10:16

Thanks for the tutorial. Please can it be applied to another language like Yoruba. Thanks.

Ответить
Hamzawei Game
Hamzawei Game - 05.10.2023 22:04

How can i get classes.pkl and words.pkl files?

Ответить
Hamzawei Game
Hamzawei Game - 05.10.2023 16:38

when i run the file there is an error that word.pkl not found

Ответить
mohamed saber
mohamed saber - 04.10.2023 23:41

where is the json file please ????????

Ответить
Triple LP
Triple LP - 20.09.2023 17:19

he doesn't even now what his own code is doing. I don't know from which video he pasted his but it is a good one. He can't explain one line of his code that's pretty embaressing. Don't youi think

Ответить
Panda
Panda - 13.09.2023 00:27

1001st comment

Ответить
woodsmith
woodsmith - 09.09.2023 08:59

where is the pickle file

Ответить
Harris Savvidis
Harris Savvidis - 03.09.2023 05:22

I learned a lot through this video. However since we have static replies for this exact project I believe that splitting the string from the user input into a list as you did, finding a key word and thus give the reply could be easily and faster done with if else statements. I get the educational manner for the AI part but because you didn’t exactly analyze the code that you used in the machine learning part because of the purpose of the video I will stick to my opinion having the thought of the purpose of the video being “build a chatbot” and not “use ai to create something”. Great video though❤

Ответить
Chenura Winrada
Chenura Winrada - 30.08.2023 12:45

How should I get the response 'I don't know ' when I entered some random input which is not in intents.json

Ответить
Sj Rohan
Sj Rohan - 30.08.2023 08:00

Does the data which was written file can be downloaded from somewhere. If yes then where?

Ответить
Muhammad Naim
Muhammad Naim - 23.08.2023 06:47

can i use this code in vsc?

Ответить
Erik Vodanovic
Erik Vodanovic - 18.08.2023 19:45

It doesn't work on my computer anyone know a fix. I'm on a M1 Pro mac

Ответить
bouchnak jihed
bouchnak jihed - 14.08.2023 09:13

one of the best channel ever

Ответить
MTF Iota-10 Damn feds
MTF Iota-10 Damn feds - 13.08.2023 15:45

What python and tensorflow version he used?

Ответить
NightfallAnimations
NightfallAnimations - 11.08.2023 19:54

2023 Code:
import random
import json
import pickle
import numpy as np

import nltk
from nltk.stem import WordNetLemmatizer

from keras.models import Sequential
from tensorflow.python.keras.layers import Dense, Activation, Dropout
from keras.optimizers import SGD

lemmetizer = WordNetLemmatizer()

intents = json.loads(open('intents.json').read())

words = []
classes = []
documents = []
ignore_letters = ['.', '?', '!', ',']

for intent in intents['intents']:
for pattern in intent['patterns']:
word_list = nltk.word_tokenize(pattern)
words.extend(word_list)

# Use 'tag' if present, otherwise use 'tags'
tag_key = 'tag' if 'tag' in intent else 'tags'
documents.append((word_list, intent[tag_key]))

if intent[tag_key] not in classes:
classes.append(intent[tag_key])


words = [lemmetizer.lemmatize(word) for word in words if word not in ignore_letters]
words = sorted(set(words))

classes = sorted(set(classes))

pickle.dump(words, open('words.pkl', 'wb'))
pickle.dump(words, open('classes.pkl', 'wb'))

Ответить
project lord
project lord - 26.07.2023 15:28

Ok i hve a question.....why is my tensorflow and numpy showing eerors 😢

Ответить
Sushmita Ghosh
Sushmita Ghosh - 20.07.2023 20:49

I am getting EOFError:Ran out of input for words=pickle.load(open('words.pkl','rb))
Plz helppppp

Ответить
Vidushi Agrawal
Vidushi Agrawal - 15.07.2023 18:27

It says lookup error in line
word_list=nltk.word_tokenize(pattern)


What should I do?
I tried many things but none of it is helping.
Please help

Ответить