Voynich Complete Reproducibility Compendium - 2026-08-28 Page 2304 target = 173076 # match the voynich glyph count from E1 cps = [0, 16, 64, 256, 1024] out["bpe"] = {} for name, lines in corp.items(): lines = truncate(lines, target) res = bpe_checkpoints(lines, set(cps), max(cps)) out["bpe"][name] = {} for k, segmap in sorted(res.items()): st = stream_stats(lines, segmap) out["bpe"][name][k] = st print(f"{name:18s} k={k:5d} types={st['types']:5d} len={st['mean_len']:.2f} " f"H1={st['H1']:.3f} H2={st['H2']:.3f} gap={st['gap']:.3f}", flush=True) (SCRATCH / "output" / "e4_results.json").write_text(json.dumps(out, indent=2))