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
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
ctx_compress-1.0.0.tar.gz
(259.5 kB
view details)
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
ctx_compress-1.0.0-py3-none-any.whl
(258.9 kB
view details)
File details
Details for the file ctx_compress-1.0.0.tar.gz.
File metadata
- Download URL: ctx_compress-1.0.0.tar.gz
- Upload date:
- Size: 259.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf9556ab5ded7bb5650a69f800b13abdfdd6c46180f35cf75d74b6cab8983812
|
|
| MD5 |
a23989b73f2e82e13e056f53c27f559e
|
|
| BLAKE2b-256 |
b22adf948774cd444c4da9b9e8dcfdd701c0fbb3977af1262a57d2d58fe38282
|
File details
Details for the file ctx_compress-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ctx_compress-1.0.0-py3-none-any.whl
- Upload date:
- Size: 258.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ec0d2c15eddb08da4103b7c9b1d271fcfad80ad6e1ae3a7061e4eca40e458b6
|
|
| MD5 |
a6f00ec6fce5026e4f84cbb2046d0661
|
|
| BLAKE2b-256 |
64d2bb4153a07aacf928e8b40605f62c2698e4cf85e1809db7a7b2740eb3ae7f
|