Skip to main content

Text compression utilities for ACACE

Project description

ACACE Compression Engine

A semantic text compression engine for the Adaptive Context-Aware Content Engine (ACACE).

Features

  • Token-based compression
  • Semantic preservation
  • Weight-based token filtering
  • Configurable compression ratios

Installation

pip install acace_compression_engine

Usage

from acace_compression_engine import compress_text
from acace_token_weightor import assign_weights
from acace_tokenizer import tokenize_text

# Prepare tokens with weights
tokens = tokenize_text("Your text to compress with important information.")
weighted_tokens = assign_weights(tokens)

# Compress text while preserving semantics
compressed_text = compress_text(weighted_tokens, compression_ratio=0.7)
print(compressed_text)

License

MIT License

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

acace_compression_engine-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

acace_compression_engine-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file acace_compression_engine-0.1.0.tar.gz.

File metadata

  • Download URL: acace_compression_engine-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.9.6 Darwin/24.3.0

File hashes

Hashes for acace_compression_engine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c39497342a3e871edeb41e44a79aaa5f01108c39946f3253aaae69683039b602
MD5 0f874dcf08249479926bec5b5f6686ff
BLAKE2b-256 ac8404c43487615a4da334b25226307a11912aa23459aa99c894b93659b4afbd

See more details on using hashes here.

File details

Details for the file acace_compression_engine-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for acace_compression_engine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27b3b7b065d0e5835e85bbb2c601e672e4eee684c8cef3dd89b093b031fa5366
MD5 7cbfbc89b967f4f677eda0342940ee56
BLAKE2b-256 942cbb42b6bcde4860e393a377b094bad29dc554136f45656c1676f0bfd49c48

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