Skip to content

FTCB (FileTrainedChatBot) is a simple, file-trained chatbot that learns from structured data in intents.json. Using nltk, numpy, and pytorch, it builds a neural network to respond accurately based on predefined training data. Ideal for straightforward interactions, FTCB is configured, trained, and ready to chat within a fixed scope of knowledge.

Notifications You must be signed in to change notification settings

Sno0wFl4ke/filetrainedchatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FTCB (FileTrainedChatBot)

FTCB is a chatbot trained on structured data in intents.json. Although it does not read or interpret general file content directly, it leverages training data to respond accurately. Using nltk for natural language processing, numpy for numerical operations, and pytorch for model training, FTCB is built for efficient and targeted interactions.

Installation

To install FTCB, you’ll need the following libraries:

  • torch
  • nltk
  • numpy

Install these packages with the following commands:

pip3 install torch
pip3 install nltk
pip3 install numpy

After installation, configure the following files:

  • intents.json: This file holds the training data that FTCB uses for learning.
  • profile.json: Contains configuration settings for the chatbot’s profile.

Training the Chatbot

In the /build directory, run the training script:

> python3 train.py

Monitor the training process to ensure the loss is below 0.01. If it isn’t, rerun the training to improve accuracy.

Running the Chatbot

To start the chatbot, execute the following command in the /ui directory:

> python3 chat.py

FTCB is now ready to respond based on the training data provided in intents.json.

About

FTCB (FileTrainedChatBot) is a simple, file-trained chatbot that learns from structured data in intents.json. Using nltk, numpy, and pytorch, it builds a neural network to respond accurately based on predefined training data. Ideal for straightforward interactions, FTCB is configured, trained, and ready to chat within a fixed scope of knowledge.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages