bdyhauliaa commited on
Commit
f3d04da
·
verified ·
1 Parent(s): 09f179b

Upload docs/SCRIPTS.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. docs/SCRIPTS.md +75 -0
docs/SCRIPTS.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Indeks Skrip
2
+
3
+ Daftar skrip menurut tahap. Kolom status: **aktif** (dipakai), **pembanding**
4
+ (untuk perbandingan di laporan), **arsip** (tidak dipakai lagi), **audio**
5
+ (fase lain, dikerjakan tim audio).
6
+
7
+ ## Jalur buku
8
+
9
+ | Skrip | Fungsi | Status |
10
+ |---|---|---|
11
+ | `build_lexicon.py` | kamus korpus untuk perbaikan ligatur | aktif |
12
+ | `finalize_dataset.py` | boilerplate, duplikasi, `work_id`, versi, ekspor parquet | aktif |
13
+ | `enrich_metadata.py` | menambah 6 kolom metadata buku + versi baru | aktif |
14
+ | `export_formulas.py` | paket rumus (`latex_raw`, `crop_path`) | aktif |
15
+ | `merge_formula_latex.py` | gabung hasil MFR ke tabel rumus | aktif |
16
+ | `fill_text_latex.py` | isi `text_latex` di chunk | aktif |
17
+ | `build_embeddings.py` | embedding buku (IndoBERT, shard, resume) | aktif |
18
+ | `verify_embeddings.py` | cek kontrak, dimensi, L2, retrieval@5 | aktif |
19
+ | `build_reference_index.py` | indeks chunk + `searchable` + katalog | aktif |
20
+ | `build_reference_coverage.py` | laporan cakupan per mapel | aktif |
21
+ | `verify_reference_index.py` | cek indeks vs embedding vs versi | aktif |
22
+ | `verify_package.py` | cek paket chunk sebelum serah-terima | aktif |
23
+ | `verify_formulas.py` | cek paket rumus | aktif |
24
+ | `qa_report.py` | laporan QA buku | aktif |
25
+ | `technical_report.py` | laporan teknis | aktif |
26
+ | `extract_tables.py` | ekstraksi tabel | aktif |
27
+ | `flag_quality.py` | status mutu teks per buku | aktif |
28
+ | `validate_structure.py` | validasi struktur bab/section | aktif |
29
+
30
+ ## Jalur transkrip
31
+
32
+ | Skrip | Fungsi | Status |
33
+ |---|---|---|
34
+ | `build_transcript_splits.py` | split per video (stratified, seed 42) | aktif |
35
+ | `normalize_transcripts.py` | teks + rumus -> `transcript_normalized.parquet` | aktif |
36
+ | `embed_transcripts.py` | embedding transkrip (IndoBERT) | aktif |
37
+ | `patch_transcript_embeddings.py` | tambah split/video + perbarui baris berubah | aktif |
38
+ | `align_transcripts_embedding.py` | semantic similarity (cosine, top-5) | aktif |
39
+ | `link_formulas.py` | formula matching (kanonik + alpha-equivalence) | aktif |
40
+ | `apply_formulas_to_text.py` | sisipkan `[RUMUS]` ke teks embedding | aktif |
41
+ | `check_formula_grounding.py` | cek simbol didukung ucapan | aktif |
42
+ | `evaluate_formula_gold.py` | exact match + CER pada kunci jawaban | aktif |
43
+ | `make_formula_review.py` | lembar semua kandidat rumus | aktif |
44
+ | `make_formula_gold.py` | lembar anotasi buta 40 sampel + pass-2 | aktif |
45
+ | `verify_transcript_embeddings.py` | cek embedding transkrip | aktif |
46
+ | `report_alignment.py` | laporan semantik + bias kelas | aktif |
47
+ | `align_transcripts.py` | TF-IDF top-5 | pembanding |
48
+ | `report_method_comparison.py` | tabel IndoBERT vs TF-IDF | pembanding |
49
+ | `tune_class_balance_embedding.py` | uji koreksi bias kelas | pembanding |
50
+ | `merge_formula_methods.py` | gabung aturan + LLM | aktif |
51
+ | `llm_normalize_formulas.py` | normalisasi rumus via LLM | aktif |
52
+ | `formula_ocr_local.py` | OCR rumus lokal | arsip |
53
+ | `ocr_formula_crops.py` | OCR crop rumus | arsip |
54
+ | `render_formula_pages.py` | render halaman PDF ke PNG | arsip |
55
+ | `formula_quality_sheet.py` | lembar penilaian rumus buku | arsip |
56
+ | `formula_summary.py` | ringkasan rumus | arsip |
57
+
58
+ ## Eksperimen/arsip buku
59
+
60
+ `debug_sheet.py`, `clean_preview.py`, `check_two_books.py`, `mfr_preprocess_test.py`,
61
+ `merge_gap_test.py`, `pilot_preview.py`.
62
+
63
+ ## Fase audio (tim lain)
64
+
65
+ `audio_index.py`, `audio_labels.py`, `audio_qc_segment.py`, `audio_transcribe.py`,
66
+ `pick_segments.py`, `merge_audio_labels.py`, `validate_audio_labels.py`,
67
+ `upload_a_segments.py`, `agama_labels.py`, `agama_summary.py`, `show_kepercayaan.py`.
68
+
69
+ ## Pengujian
70
+
71
+ | Berkas | Isi |
72
+ |---|---|
73
+ | `tests/test_transcript_rules.py` | aturan rumus: pecahan, akar, pangkat, satuan, S2/S3 |
74
+
75
+ Jalankan: `python tests/test_transcript_rules.py`.