Skip to main content

A lightweight context compression toolkit for NLP pipelines.

Project description

ctx-compress

A lightweight context compression toolkit for NLP pipelines.

Installation

pip install ctx-compress

Quick Start

from ctx_compress import align_output

result = align_output(task_id=1, test_sample_id="sample-001", raw_output="hello world")
print(result)

Features

  • Context compression with configurable compression levels
  • Output alignment utilities
  • Lightweight and dependency-minimal

License

MIT

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

ctx_compress-1.0.1.tar.gz (259.3 kB view details)

Uploaded Source

Built Distribution

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

ctx_compress-1.0.1-py3-none-any.whl (258.7 kB view details)

Uploaded Python 3

File details

Details for the file ctx_compress-1.0.1.tar.gz.

File metadata

  • Download URL: ctx_compress-1.0.1.tar.gz
  • Upload date:
  • Size: 259.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for ctx_compress-1.0.1.tar.gz
Algorithm Hash digest
SHA256 54affcb4ddb83ee61d1e75a206c85ec51e463a7bbbadbf5c2fca9e4d85e305c4
MD5 6561d86fe771f5f12454795402ab82be
BLAKE2b-256 17c6dd1a6b2ceed38f8ed9f89af4438239f02105bf0fd1e4e810f65547e11bb2

See more details on using hashes here.

File details

Details for the file ctx_compress-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ctx_compress-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 258.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for ctx_compress-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7df0fbced390c09218749e7f659f479dc473de172e84ad3ea901eb0091c7c64
MD5 056b5ee17d78f08ad9725e401a32657a
BLAKE2b-256 38682612d89baeaed65d5e1d21dd543d351f52b7c53305e88dae41fe4e3288b5

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