Skip to content

Acharyasoumya02/AI-CHATBOT-WITH-NLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AI-CHATBOT-WITH-NLP

COMPANY: CODTECH IT SOLUTIONS

NAME: SOUMYA RANJAN ACHARYA

INTERN ID:CT04DF1651

DOMAIN: Python Programming

BATCH DURATION:June 5th, 2025 to July 5th, 2025.

MENTOR NAME: NEELA SANTHOSH

DESCRIPTION OF TASK

An NLP based Chatbot over a simple fully connected neural network architecture using Tensorflow and tflearn. Trained over a custom dataset specified in the JSON file.

Prerequisites

Run pip install -r requirements.txt in your terminal to install all required libraries

Dataset

The dataset.json contains the intents on which the model is trained. Each pattern (sentence) and response is given a particular tag. The model classifies each input sentence under a tag and gives out a random answer corresponding to that tag. The json file can be formatted according to the user's requirements.

PyAudio

In Python versions above 3.6 PyAudio is not a supported library and installing PyAudio directly using
pip install pyaudio fails and needs to be installed separately.

  • Windows
    For that, individually install the wheel file given (this is for Python 3.7, find suitable wheel files here) writing the following line in your terminal.
    pip install <.wh file name>

  • Ubuntu/Linux
    $ sudo apt-get install python3-pyaudio

Execute Code

  • Run trainModel.py to train the Fully Connected Network on the dataset. You can change the number of epochs or layers accordingly, the current architecture gave good results with a ~95% accuracy on predicting tags.

  • Run textChatbot.py for text based chatbot with GUI incorporated

  • Run voiceBot.py for voice recognition based chatbot

GUI Snippet

#OUTPUT Image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages