9 days ago
-
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