Adaugă al 4-lea nivel de sumarizare: caiete de facilitator cu corelații
cross-disciplinare (IFS, CNV, attachment theory, Brené Brown, neuroștiință),
exerciții cu script complet, și ghiduri de aplicare cu secvențe de cadrare
pentru 4 contexte (grup NLP, cercetași, CNV, self-coaching).
Fișiere noi (în summaries/, ne-tracked de .gitignore):
- 5 caiete: MODUL{1-5}_{CONCEPT}.md
- 5 aplicări: MODUL{1-5}_{CONCEPT}_APLICARI.md
- 5 cross-modul: INDEX_EXERCITII, HARTA_CONEXIUNI, GLOSAR_CREDINTE,
GHID_FACILITARE, METAFORE_POVESTI
Tracked:
- PROMPT_EXPERIENTIAL.md: prompt reutilizabil pentru M6
- TODOS.md: instrucțiuni complete pentru M6 (run.bat 6 + sumarizări + caiet)
- md_to_pdf.py: convertor markdown→PDF pentru summaries
- PROCES_SUMARIZARE.md: documentație proces sumarizare standard
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3.5 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
NLP Master is a personal audio-to-text pipeline that downloads, transcribes, and summarizes Romanian NLP course lectures from cursuri.aresens.ro/curs/26. It processes ~35 MP3 files (~58 hours total) across 5 modules (6th pending).
Architecture
Three-stage batch pipeline, all driven by a shared manifest.json:
-
download.py — Logs into the course site (credentials from
.env), scrapes module/lecture structure, downloads MP3s toaudio/. Updates manifest with download status. Resumable (skips existing files). -
transcribe.py — Reads manifest, converts MP3→WAV (16kHz mono via ffmpeg), runs whisper.cpp (
whisper-cli.exe) for Romanian speech-to-text. Outputs.txtand.srttotranscripts/. Has a quality gate after the first module. Resumable. Supports--modules 1-3filter. -
summarize.py — Generates Claude-compatible prompts from transcripts (chunks long texts at sentence boundaries with overlap).
--compileflag assembles all summaries intoSUPORT_CURS.mdmaster study guide. Summaries are in Romanian.
setup_whisper.py — Auto-downloads whisper.cpp (Vulkan build for AMD GPU), ffmpeg, and the Whisper model. Called by run.bat.
run.bat — Windows batch orchestrator: checks prerequisites, auto-installs missing components, creates venv, runs download→transcribe pipeline. Accepts optional module filter argument.
Commands
# Full pipeline (Windows native)
run.bat # download + transcribe all modules
run.bat 4-5 # transcribe only modules 4-5
# Individual steps (from venv)
python download.py # download audio files
python transcribe.py # transcribe all
python transcribe.py --modules 1 # transcribe module 1 only
python summarize.py # print summary prompts to stdout
python summarize.py --compile # compile SUPORT_CURS.md from existing summaries
# MD → PDF (from WSL2, uses .venv_pdf)
.venv_pdf/bin/python md_to_pdf.py # all MODUL*_*.md → summaries/pdf/
.venv_pdf/bin/python md_to_pdf.py --modules 1-3 # specific modules
.venv_pdf/bin/python md_to_pdf.py summaries/X.md # specific file
# Setup components individually
python setup_whisper.py whisper # download whisper.cpp binary
python setup_whisper.py model # download Whisper model
python setup_whisper.py ffmpeg # download ffmpeg
Key Design Decisions
- Platform split: Scripts run on native Windows (whisper.cpp needs Vulkan GPU access). Claude Code runs from WSL2 for summaries.
- Vulkan, not CUDA: Hardware is AMD Radeon RX 6600M 8GB (RDNA2). whisper.cpp is built with Vulkan backend.
- Model:
ggml-medium-q5_0.bin(quantized medium, fits in 8GB VRAM). Stored inmodels/. - manifest.json is the shared state between all scripts — tracks download/transcribe status per lecture. Checkpointed after each file.
- Resumability: All scripts skip already-completed files. Safe to re-run after failures or when new modules appear.
- Environment variables:
COURSE_USERNAMEandCOURSE_PASSWORDin.env. Optional:WHISPER_BIN,WHISPER_MODELto override paths.
Dependencies
Python packages (in requirements.txt): requests, beautifulsoup4, python-dotenv
External tools (auto-installed by run.bat/setup_whisper.py):
- whisper.cpp (whisper-cli.exe) with Vulkan support
- ffmpeg (for MP3→WAV conversion)