Skip to main content

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:

  1. OCR Module
  2. Augmentation Module
  3. Sentiment Analysis Module
  4. 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

  1. 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

  1. 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.

  1. 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.

  1. augment_image(input_path, output_path)

Loads an image, applies image augmentation, writes the augmented image back to disk, and returns the output path.

  1. 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

  1. 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").


  1. 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

  1. 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

aipackagewrapper-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

aipackagewrapper-1.0.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for aipackagewrapper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f60a18dd85d061f5474d83a39042539c5c88547b0c9bade306b8c309ac336540
MD5 2a93c74385b9b9bc22a0004e7f23a826
BLAKE2b-256 809d4f912d966d6d1def1484ac14fbec4a508147c0ece89fc42c06d0120b68b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for aipackagewrapper-1.0.0.tar.gz:

Publisher: package-publish.yml on Abhay-Cerberus/Package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aipackagewrapper-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aipackagewrapper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2841d377265af71e29029d6a1df29a08e610e07423332bf0eb0b382aab06d657
MD5 8316a08a64d22ab7e1d568ffed807d79
BLAKE2b-256 a46e2ab4f84d5f9b980570c03de32c58aa7f547845e3cbf1b03ed25e2c32776e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aipackagewrapper-1.0.0-py3-none-any.whl:

Publisher: package-publish.yml on Abhay-Cerberus/Package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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