Skip to main content

A python module that utilizes AI to classify natural language into categories for processing with other models.

Project description

Classy

How to use

Install:

pip install Classy-AI

Setup:

import Classy
Classy.download()

Downloads "data.pth" to your working directory. Also downloads the NLTK "punkt" tokenizer

Usage (Pre built with OpenAI and other tools):

import Classy
Classy.init('/path/to/data.pth','OpenAI api key')
primary, secondary, stemmed, organized = Classy.question("hello, how are you?")

Usage (Just the classifier)

import Classy
Classy.init('/path/to/data.pth','Nothing here')
intent, certainty = Classy.classify("hello, how are you?")

I need more training data

Open a pull request if you have some and put it in unorganized data. I will format it. If you have organized data, put it directly in the intents.json file

Deployed here:

http://chat.mrpi314.com

Website only works if one person is using it

For best conversations type "reset" (all lowercase) before you start chatting.

Charges $0.04 for every image you generate with your api key. Text generation is $0.50 for 1M input tokens (almost nothing).

I can add a custom password for you on the website if you add training data. Message me at 123scoring@gmail.com. Put in the description of the pull request that you want a custom password for your Openai key.

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

Classy-AI-0.0.5.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

Classy_AI-0.0.5-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file Classy-AI-0.0.5.tar.gz.

File metadata

  • Download URL: Classy-AI-0.0.5.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for Classy-AI-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d67f416a05f319da4b7607196047f39c9621ec566c8b7b83f4f2446476287eeb
MD5 233961bcc6175a88dc35e94a3494245c
BLAKE2b-256 45ad5934903193901209633b0621a0b4b63078c93a9e7bb218475deb945d9be6

See more details on using hashes here.

File details

Details for the file Classy_AI-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: Classy_AI-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for Classy_AI-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5db46134ae93843e4b0908a43e607442ed9383c99f837b8c18810ff0ce8c64c8
MD5 bea3f24294e2a7cb77c1bdc99773923e
BLAKE2b-256 f4a8633f62cc6e901db81fef6b7c5ea49472f384aa881df060f22ce5a8a7e9d6

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