The project consists of the following files:
-
intents.json: This file contains the intents and responses used by the NebulaAI chatbot. Each intent represents a specific topic or action.
-
model.py: The Python script for training and managing the NebulaAI chatbot model. It uses the intents.json file to create a model for responding to user queries.
-
chat.py: The main NebulaAI chatbot script that takes user input and interacts with the chatbot model to provide responses.
-
nltk_utils.py: Utility functions for text preprocessing and tokenization using NLTK.
-
train.py: A script to train the NebulaAI chatbot model using the data from intents.json.
-
Clone this repository to your local machine.
-
Install the necessary libraries, including
torch
,nltk
, and other dependencies, by running:pip install torch nltk
-
Run
train.py
to train the NebulaAI chatbot model using the data from intents.json. -
After training, you can interact with the NebulaAI chatbot by running
chat.py
. Type your questions or statements, and the chatbot will respond based on the trained model.
python chat.py
You can expand the NebulaAI chatbot's knowledge by modifying the intents.json file. Add more intents, patterns, and responses to cover a wide range of topics and questions.
Below is an example of the NebulaAI chatbot's output:
This project is licensed under the MIT License - see the LICENSE file for details.