Voynich Master Archive - Volume 08 - Pages 7001-8000
Volume 08 test records, including LATIN-LANGUAGE-GATE-017. The original PDF is about 27.2 MB, so it is served as two pypdf parts.
PDF page 839 of 1000. Catalog page range 7001-8000.
Original unsplit file sha256 582276c093e2e86992a4025dd84597476f10a6f55c1fa2e3388389f825a96555. The original bytes are not stored.
Extracted text
run_house_home.py
VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 1
run_house_home.py
Source: /Voynich/Voynich_House_Home_Test150A_Bundle.zip!/run_house_home.py
SHA-256: 68c9550095bc2da67d46d5e3f19dfc0a74d836911145111764f3e161b0a3bd42
import csv, json, hashlib, math
from pathlib import Path
from collections import Counter, defaultdict
import numpy as np
ROOT=Path(__file__).resolve().parent
SRC=ROOT/'input.tsv'
if not SRC.exists(): SRC=ROOT.parent/'inputs/Voynich_CNLT1_canonical_normalized_lexical_transcription_20
26-08-22.tsv'
OUT=ROOT
SEED=15020260907
rng=np.random.default_rng(SEED)
rows=list(csv.DictReader(SRC.open(),delimiter='\t'))
lines=defaultdict(list)
for r in rows: lines[r['locus']].append(r)
events=[]
for locus,rr in lines.items():
rr.sort(key=lambda r:int(r['token_index']))
by={int(r['token_index']):r for r in rr}
folio=locus.split('.')[0]
# Keep recto/verso and foldout panels together by physical folio number.
import re
match=re.match(r'f\d+',folio)
group=match.group() if match else folio
fold=int(hashlib.sha256(('househome150:'+group).encode()).hexdigest()[:12],16)%5
for i,r in by.items():
if i+1 not in by: continue
body=r['internal_body']
if body=='∅': continue
distant=[by[j]['internal_body'] for j in range(i-5,i+6) if abs(j-i)>=2 and j in by]
events.append(dict(body=body,state=r['grammar_state'],target=by[i+1]['internal_body'],distant=di
stant,folio=group,fold=fold,agree=r['cross_transcription_family_agreement']))
vocab=sorted({e['target'] for e in events}); vi={v:i for i,v in enumerate(vocab)}
fold_results=[]; pair_rows=[]; nulls=[]
for fold in range(5):
tr=[e for e in events if e['fold']!=fold]; te=[e for e in events if e['fold']==fold]
counts=Counter(e['body'] for e in tr); fols=defaultdict(set); states=defaultdict(Counter);
distant=defaultdict(Counter)
joint=defaultdict(Counter); base=defaultdict(Counter)
for e in tr:
b,s,t=e['body'],e['state'],e['target']; fols[b].add(e['folio']);states[b][s]+=1;distant[b].updat
e(e['distant']);joint[b,s][t]+=1;base[s][t]+=1
eligible=sorted(b for b,n in counts.items() if n>=40 and len(fols[b])>=5 and
sum(distant[b].values())>=80)
mode={b:states[b].most_common(1)[0][0] for b in eligible}
# Context vocabulary learned on training only. Remaining mass has one OTHER bin.
dc=Counter()
for b in eligible:dc.update(distant[b])
ctx=[b for b,n in dc.most_common(100)]
def profile(b):
c=distant[b];a=np.array([c[x] for x in ctx]+[sum(c.values())-sum(c[x] for x in ctx)],float)+.5
return a/a.sum()
p={b:profile(b) for b in eligible}
def js(a,b):
m=(p[a]+p[b])/2
return float(.5*np.sum(p[a]*np.log2(p[a]/m))+.5*np.sum(p[b]*np.log2(p[b]/m)))
candidates={a:[b for b in eligible if b!=a and mode[a]==mode[b] and .5<=counts[b]/counts[a]<=2 and
a.split()!=b.split()] for a in eligible}
anchors=sorted((a for a in eligible if len(candidates[a])>=5),key=lambda a:(-counts[a],a))[:20]
# Up to 20 anchors fixed by training frequency; choose each partner on distant context only.