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?")

API

Go to http://chat.mrpi314.com/api to learn about how to use the api.

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.

An easy way to contribute is by scrolling through your ChatGPT conversations/Google searches/DALL-E inputs and pasting some of your own data into the unformatted data file.

Deployed here:

http://chat.mrpi314.com

Website only works if one person is using it

Charges $0.04 for every image you generate with your api key. Text generation is $0.15 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.

Thanks

Thanks to Patrick Loeber for teaching me PyTorch

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.9.tar.gz (8.4 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.9-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Classy-AI-0.0.9.tar.gz
  • Upload date:
  • Size: 8.4 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.9.tar.gz
Algorithm Hash digest
SHA256 1cb74b07dcd0e25f6b1bc292abba0dc7085a3c4a852207748a0f3f893b6dd86c
MD5 f4b7bc509e3ce8e60073dcb9da491122
BLAKE2b-256 39dba7990f7fdd5d87f17c07a57ebf18deab76e02ccc5a107746be9876bb6a10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Classy_AI-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 93ec1df3fd4dcec247ec896922dd717961a9385ab624585e8a48f5d5cf888a6c
MD5 6f55ae714123ffe4ac34e6074dbf227d
BLAKE2b-256 7ada04bf796198d670b16e70892dc0e80f637a3d3911fc81c3325a2bcf5c47c2

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