SID reglog parsing, tokenization, and macro transforms extracted from the preframr research codebase.
Project description
preframr-tokens
SID reglog parsing, tokenization, and macro transforms extracted from the preframr research codebase.
Torch-free. The training-side concerns (model, loss, DataLoader,
predict) live in the main preframr repo; this package contains the
stable parsing + encoding layer that produces the parsed parquets +
unigram tokenizer alphabet that downstream training consumes.
Install
pip install preframr-tokens
Modules
preframr_tokens.reglogparser-- SID dump → parsed dataframe pipeline.RegLogParser.preframr_tokens.regtokenizer-- alphabet build + unigram tokenizer fit.RegTokenizer.preframr_tokens.macros.*-- declarativeTransformregistry plus the macro / pre-norm passes (slope, preset, hard_restart, legato_per_cluster, voice_block_order, ctrl_bigram, loop, etc.). Macros declareOP_CODES,LOSS_TIER,SUBSTITUTABLE_OPS,MUST_FOLLOW, etc. on their classes;pipeline_check.validate_pipeline_specvalidates a pipeline declaratively.preframr_tokens.stfconstants-- SID register IDs, op codes, pandas dtypes, PAL clock constants.preframr_tokens.engine_fingerprint-- engine clustering for cross-engine evaluation pinning.preframr_tokens.coarsen_pass-- tracker-export pass (lossy audio-domain bucketing).preframr_tokens.dump_meta-- per-dump metadata sidecar with code-hash staleness gate.preframr_tokens.reglog_helpers-- palette IO + dtype tightening.preframr_tokens.alphabet_projection-- eval-set atom projection table.preframr_tokens.reg_mappers--FreqMapper(PAL clock + cents quantization).
Library-only
No CLI entry points. Consumers build their own (the main preframr
repo's parse.py and stftokenize.py are simple wrappers that
construct RegLogParser / RegTokenizer from an argparse.Namespace).
Stability
Library follows semver from v1.0. Pre-1.0 releases may break API as the preframr codebase evolves. Token-alphabet shape changes bump major version since they invalidate downstream checkpoints.
License
Apache 2.0. See LICENSE.
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
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 preframr_tokens-0.1.0.tar.gz.
File metadata
- Download URL: preframr_tokens-0.1.0.tar.gz
- Upload date:
- Size: 494.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48bd32f1f33e9ca01a25261c2d140e7f04ae9647d7e2eafc3b662996a9c69599
|
|
| MD5 |
1a0362a54dba18836adc438029e00925
|
|
| BLAKE2b-256 |
55b298e38e01c416920d5bc9437ac46724e5cda41ec2c401a4f5828b7192fdcf
|
Provenance
The following attestation bundles were made for preframr_tokens-0.1.0.tar.gz:
Publisher:
release.yml on anarkiwi/preframr-tokens
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
preframr_tokens-0.1.0.tar.gz -
Subject digest:
48bd32f1f33e9ca01a25261c2d140e7f04ae9647d7e2eafc3b662996a9c69599 - Sigstore transparency entry: 1589669180
- Sigstore integration time:
-
Permalink:
anarkiwi/preframr-tokens@103d149bd8f1b82985c56b0f9e2603d1fffd2aaa -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/anarkiwi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@103d149bd8f1b82985c56b0f9e2603d1fffd2aaa -
Trigger Event:
push
-
Statement type:
File details
Details for the file preframr_tokens-0.1.0-py3-none-any.whl.
File metadata
- Download URL: preframr_tokens-0.1.0-py3-none-any.whl
- Upload date:
- Size: 470.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d78ca136f6d4d28d2dce5b2e57e4168db4178ecee344e54e3f9d4d44407be073
|
|
| MD5 |
7283166037651be86c245f3913efcdcb
|
|
| BLAKE2b-256 |
2df98d6e42c746ac3eb90803d8886378ac68def37bb19c22003cbaf7a890ddef
|
Provenance
The following attestation bundles were made for preframr_tokens-0.1.0-py3-none-any.whl:
Publisher:
release.yml on anarkiwi/preframr-tokens
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
preframr_tokens-0.1.0-py3-none-any.whl -
Subject digest:
d78ca136f6d4d28d2dce5b2e57e4168db4178ecee344e54e3f9d4d44407be073 - Sigstore transparency entry: 1589669278
- Sigstore integration time:
-
Permalink:
anarkiwi/preframr-tokens@103d149bd8f1b82985c56b0f9e2603d1fffd2aaa -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/anarkiwi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@103d149bd8f1b82985c56b0f9e2603d1fffd2aaa -
Trigger Event:
push
-
Statement type: