A package for OCR, XAI, data augmentation, and sentiment analyzer
Project description
Ai Package Wrapper
This is a wrapper package for multiple ai tools
It contains 4 total modules:
- OCR Module
- Augmentation Module
- Sentiment Analysis Module
- Explainable AI Module
OCR MODULE (made by @Madhavseekri)
This is a simple and efficient OCR (Optical Character Recognition) module written in Python. It allows you to extract text from images using pytesseract and Pillow.
What It Does
- Extracts readable text from image files.
- Supports PNG, JPEG, and other image formats.
- Can be extended for use in document scanning, data entry automation, and AI projects.
How It Works
- extract_text(image_path)
Opens an image file and extracts text from it using pytesseract. Returns the extracted text.
Augmentation Module (made by @Ayushi-000)
augmentation is a Python package built for learning how to deploy real-world Python projects using Pip and Poetry. It includes simple examples of data augmentation for image, text, and audio files.
This package was created and deployed as part of a Prodigal's first task on Python package deployment using *Poetry, **PyPI, **GitHub, and *CI/CD pipelines.
How It Works
- init()
Sets up three augmentation pipelines:
Audio Augmentation: Applies Gaussian noise, time stretching, and pitch shifting.
Image Augmentation: Uses horizontal flipping, random brightness/contrast, and rotation.
Text Augmentation: Performs synonym replacement using nlpaug.
- augment_audio(input_path, output_path)
Reads an audio file, applies the audio augmentation pipeline, writes the augmented audio to a file, and returns the output path.
- augment_image(input_path, output_path)
Loads an image, applies image augmentation, writes the augmented image back to disk, and returns the output path.
- augment_text(text)
Processes a given text string through the text augmentation pipeline and returns the augmented text (a list of augmented strings).
Sentiment Analyzer (made by @abhay-cerberus)
A simple sentiment analysis package that leverages TextBlob to determine whether a piece of text expresses positive, negative, or neutral sentiment. It provides an easy-to-use interface for analyzing both single texts and batches of texts.
How It Works
- analyze_text(text)
Processes a single text string by converting it to lowercase, calculating its sentiment polarity using TextBlob, and returning a sentiment label ("positive", "negative", or "neutral").
- analyze_batch(texts)
Takes a list of text strings, analyzes each one using analyze_text, and then returns both the raw counts and percentages for each sentiment category.
ExplainableAi (made by @priyanshibindal)
How It Works
- explain_model(model, data, method='shap')
Loads a pre-saved model and dataset (from churn_model.pkl), creates a SHAP explainer for the model, and generates visual explanations:
Produces a waterfall plot for the first prediction.
Produces a beeswarm plot summarizing feature importance.
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
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 aipackagewrapper-1.0.0.tar.gz.
File metadata
- Download URL: aipackagewrapper-1.0.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f60a18dd85d061f5474d83a39042539c5c88547b0c9bade306b8c309ac336540
|
|
| MD5 |
2a93c74385b9b9bc22a0004e7f23a826
|
|
| BLAKE2b-256 |
809d4f912d966d6d1def1484ac14fbec4a508147c0ece89fc42c06d0120b68b2
|
Provenance
The following attestation bundles were made for aipackagewrapper-1.0.0.tar.gz:
Publisher:
package-publish.yml on Abhay-Cerberus/Package
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aipackagewrapper-1.0.0.tar.gz -
Subject digest:
f60a18dd85d061f5474d83a39042539c5c88547b0c9bade306b8c309ac336540 - Sigstore transparency entry: 195135030
- Sigstore integration time:
-
Permalink:
Abhay-Cerberus/Package@4639125e9b823afd6a5455566ee09932d10348a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Abhay-Cerberus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package-publish.yml@4639125e9b823afd6a5455566ee09932d10348a2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aipackagewrapper-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aipackagewrapper-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2841d377265af71e29029d6a1df29a08e610e07423332bf0eb0b382aab06d657
|
|
| MD5 |
8316a08a64d22ab7e1d568ffed807d79
|
|
| BLAKE2b-256 |
a46e2ab4f84d5f9b980570c03de32c58aa7f547845e3cbf1b03ed25e2c32776e
|
Provenance
The following attestation bundles were made for aipackagewrapper-1.0.0-py3-none-any.whl:
Publisher:
package-publish.yml on Abhay-Cerberus/Package
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aipackagewrapper-1.0.0-py3-none-any.whl -
Subject digest:
2841d377265af71e29029d6a1df29a08e610e07423332bf0eb0b382aab06d657 - Sigstore transparency entry: 195135031
- Sigstore integration time:
-
Permalink:
Abhay-Cerberus/Package@4639125e9b823afd6a5455566ee09932d10348a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Abhay-Cerberus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package-publish.yml@4639125e9b823afd6a5455566ee09932d10348a2 -
Trigger Event:
push
-
Statement type: