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.
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:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Classy-AI-0.0.7.tar.gz.
File metadata
- Download URL: Classy-AI-0.0.7.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0fc0554f165e99f4f65b129a0280ce489d2a5d75781451d4c29cfd3364ac30d
|
|
| MD5 |
9c8072fcbfc4309302babfc9ac67bbf9
|
|
| BLAKE2b-256 |
6a111ed9247578a70ddc654f2a77405dca82a85d5fbc28954093b41f4a9e7ab5
|
File details
Details for the file Classy_AI-0.0.7-py3-none-any.whl.
File metadata
- Download URL: Classy_AI-0.0.7-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38f9909c44792c3eb36750194653c703c08b62dd74ed913c4575c8dd182b6da2
|
|
| MD5 |
d7eddf1718930d93d89f16bad42eed95
|
|
| BLAKE2b-256 |
981d552cbe9e4e3bff138ecb2d644223b178d7918f04b6a52706171b0445f947
|