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:
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
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.4.tar.gz.
File metadata
- Download URL: Classy-AI-0.0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5848eb296661b3e4a30465e47be8fec17492de5471b1086140782e9ff4fcbab
|
|
| MD5 |
c73bc51d3c01639d4d1169c5852b749a
|
|
| BLAKE2b-256 |
5ee6d463e42b21acb4e5b0f3889b00ed3e0cc196348444117c0ae3ff32a324d3
|
File details
Details for the file Classy_AI-0.0.4-py3-none-any.whl.
File metadata
- Download URL: Classy_AI-0.0.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ab1112974483aa77b70962431447ffc7664c03ef38eb841a35ee98dcadda432
|
|
| MD5 |
6a2d09402e9c55f6c185956329385fb2
|
|
| BLAKE2b-256 |
dd446ec407ef7c403889709065484207a697a4e7a36bd247c57a25543716723a
|