Repository navigation
feat(WO15): add interscript-py — Python runtime with compiled-IR execution and the model layer - #830
Merged
Merged
Conversation
…mpiled JSON-IR map artifact
New top-level package (BSD-3-Clause), independent of the Ruby gem:
- loader for interscript.maps.ir.v1 artifact dirs (manifest +
SHA256SUMS verify, release-tarball extraction, dependency resolution),
matching the TS reference consumer's format exactly
- executor: port of interscript-ts runtime/ (sub rules with lookaround
constraints and capture templates, parallel blocks via trie or
megaregexp, run/funcall), on the regex module for \p{L} + variable
lookbehind
- conformance: byte-exact replay of frozen model vectors
(interscript-models/conformance) and the maps corpus' own embedded
tests (bundled curated 265-map compiled subset; full corpus via
$INTERSCRIPT_MAPS_IR)
- models subpackage: fold-in of the ByT5 IMF loader (byte+3 + EOS
tokens, per-member sha256 verification, index registry resolve,
single-row-greedy decode), optional [ml] extra
- artifact_fetch: GitHub Releases download channel
- python -m interscript.artifact_fetch, Makefile (test/test-full/
test-ml/lint/build-artifact), scripts/build_maps_ir.sh
Embedded-corpus results: 256/256 runnable maps byte-identical on the
bundled subset, 305/305 on the full 313-map corpus (2 known-divergent
maps skipped: TS reference produces identical bytes; rows need Ruby-
only char-class alias semantics or the lexicon layer).
…; tidy counts - add unicode/var-Cyrl/var-kor lib maps so every bundled map's declared dependencies resolve inside the subset (un-bul -> var-kor was dangling) - strict_id flag for the tha-phonemic family: the released zip's metadata.yaml id is mislabeled upstream (tha-g2p-lex-1.0) while the weights decode its vectors 12/12 byte-exact; outputs stay byte-checked - README/docstring subset counts (268), drop an unused import shim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan