Skip to main content

A Python package for creating ChatBot with your own data

Project description

HAI_Bot

Python License

HAI_Bot is a Python library that allows you to create a custom AI assistant to help with various tasks. You can train the AI with your own data to improve its performance.

Features

  • Trainable with custom data
  • Natural Language Processing (NLP) for better interactions
  • Customizable model based on user needs

Installation

To install this library, use pip:

pip install HAI_Bot

or you can install library from existing .gz file.

pip install hai_bot-0.5.tar.gz

Usage

Basic Example

from HAI_Bot import HAI_model
n = HAI_model("NLP_Data.json", "chatbot_model.h5")

while True:
  m = str(input("TEXT ==>  ")).lower()
  if m == 'quit':
    break
  print(n.Chat(m))

Training Data Format

For effective learning, the training data should be in JSON format with structured intents. Example:

{
  "intents": [
    {
      "tag": "greeting",
      "patterns": ["Hello", "Hi", "Hey"],
      "responses": ["Hello! How can I assist you?", "Hi there!"]
    },
    {
      "tag": "goodbye",
      "patterns": ["Bye", "See you", "Goodbye"],
      "responses": ["Goodbye! Have a great day!", "See you soon!"]
    }
  ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hai_bot-0.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

HAI_Bot-0.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file hai_bot-0.5.tar.gz.

File metadata

  • Download URL: hai_bot-0.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0rc3

File hashes

Hashes for hai_bot-0.5.tar.gz
Algorithm Hash digest
SHA256 4b6c01cbdbc7357ad2ede76c4a01b83ea89364e49b8625b8ffd68267f324053d
MD5 b2352d1005fb355e3cd356f712a99c57
BLAKE2b-256 0a9e27ca3bcd0ab00b8e415bc642f9aefb59639ccf30d83bcaf97ca0ae51ea0c

See more details on using hashes here.

File details

Details for the file HAI_Bot-0.5-py3-none-any.whl.

File metadata

  • Download URL: HAI_Bot-0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0rc3

File hashes

Hashes for HAI_Bot-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c17ea66f72e4e0587b55203736c9e52a3dc44b1f21a78f69f4a9f6055355a268
MD5 6870ee37b1d71d2f4c9395d5805de029
BLAKE2b-256 0d6ce8e6fe198579e00502e13bb6b6e8950c466c3d74de2d63755cc5482dfcfa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page