9 days ago
-
phase4: Imami commentary live - Majma al-Bayan ingested (192 units, 0 empty segments)
- sources: ar.lib.eshia.ir book 86854 (Dar al-Marifa ed.), 289 pages stored w/ sha256,
self-labeled pagination resolved empirically (vol numbering restarts across vols;
surahs 17-19 sit at vol 6 pp. 773-826 despite the vol 6->7 seam)
- fetch_majma_eshia.py: locator (surah-filtered quote-anchor matching vs stored Tanzil
only, no recall) + walker + segmenter; per-surah and per-verse substrates; coverage
152/192 anchored, 40 merged-with-flag, 0 empty
- ingest_majma.py: 192 imami commentary_units appended (quote_ar verbatim, G2-checked;
citations via detect_citations; honest attribution_flags: footnote-text inclusion +
merge flags) -> 768 total units (576 sunni + 192 imami)
- classify_xrefs.py: create-path dedup guard (idempotent re-runs)
- graph rebuilt: 24,033 edges (+512 exegetical citing_mufassir=tafsir_majma_albayan,
all queued); classify re-applied 17/17 relations without duplicates
- manifest: tafsir_majma_albayan registered use_with_notice (PD underlying text d. 548 A… -
fix(G5): idf_weight present on all lexical edges
- detect_mutashabihat.py: emit phrase_df + idf_weight = ln(6236/df) per folded phrase
- build_xrefs.py: carry phrase_df/idf_weight into parallel_phrase evidence (loud KeyError on stale input)
- classify_xrefs.py: classifier-CREATED lexical edges get idf_weight (+ shared_lemma) from rarest shared lemma, same formula as shared_lemma edges
- backfill_idf_weight.py: one-off surgical backfill of 72 deficient edges (71 parallel_phrase + 1 llm_review 6:74->19:46); unchanged lines byte-identical
- parallel_phrases.jsonl regenerated (same 71 pairs, now weighted, phrase_df 2-13, idf 6.17-8.05)
verify.py: 0 warnings, PASS G1-G6; tests/test_6_74.py: 11/11 PASS -
phase3-6 continued: NOTICE.md + DATASET_CARD.md (attribution compliance); mutashabihat detector (71 pairs) wired into graph (23,521 edges); KB expanded to 192 verses (Surah 19+60 complete, Ibrahim blocks 2:124-141, 6:74-90) with 576 commentary units + 1,662 citations; surah names + page numbers backfilled from API with provenance; probe expanded (2 real / 3 labeled fake); PERMISSION_REQUESTS.md drafts
Z User
-
phase3: xref graph — 3,633 edges (lexical IDF-weighted incl. all ingested-pairs; exegetical from 878 detected ayah citations in 171 commentary units); LLM classifier applied 17 closed-set decisions to review queue; 6:74 acceptance test PASS (lexical link + usage split + sourced positions)
Z User