klausur-service (7 monoliths): - grid_editor_helpers.py (1,737 → 5 files: columns, filters, headers, zones) - cv_cell_grid.py (1,675 → 7 files: build, legacy, streaming, merge, vocab) - worksheet_editor_api.py (1,305 → 4 files: models, AI, reconstruct, routes) - legal_corpus_ingestion.py (1,280 → 3 files: registry, chunking, ingestion) - cv_review.py (1,248 → 4 files: pipeline, spell, LLM, barrel) - cv_preprocessing.py (1,166 → 3 files: deskew, dewarp, barrel) - rbac.py, admin_api.py, routes/eh.py remain (next batch) backend-lehrer (1 monolith): - classroom_engine/repository.py (1,705 → 7 files by domain) All re-export barrels preserve backward compatibility. Zero import errors verified. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
"""
|
|
Multi-pass OCR, line matching, LLM/spell review, and pipeline orchestration.
|
|
|
|
Re-export facade -- all logic lives in the sub-modules:
|
|
|
|
cv_review_pipeline Stages 6-8: OCR, line alignment, orchestrator
|
|
cv_review_spell Rule-based spell-checker OCR correction
|
|
cv_review_llm LLM-based OCR correction, prompt building, streaming
|
|
|
|
Lizenz: Apache 2.0 (kommerziell nutzbar)
|
|
DATENSCHUTZ: Alle Verarbeitung erfolgt lokal.
|
|
"""
|
|
|
|
# Re-export everything for backward compatibility
|
|
from cv_review_pipeline import ( # noqa: F401
|
|
ocr_region,
|
|
run_multi_pass_ocr,
|
|
match_lines_to_vocab,
|
|
llm_post_correct,
|
|
run_cv_pipeline,
|
|
)
|
|
|
|
from cv_review_spell import ( # noqa: F401
|
|
_SPELL_AVAILABLE,
|
|
_spell_dict_knows,
|
|
_spell_fix_field,
|
|
_spell_fix_token,
|
|
_try_split_merged_word,
|
|
_normalize_page_ref,
|
|
spell_review_entries_sync,
|
|
spell_review_entries_streaming,
|
|
)
|
|
|
|
from cv_review_llm import ( # noqa: F401
|
|
OLLAMA_REVIEW_MODEL,
|
|
REVIEW_ENGINE,
|
|
_REVIEW_BATCH_SIZE,
|
|
_build_llm_prompt,
|
|
_diff_batch,
|
|
_entry_needs_review,
|
|
_is_spurious_change,
|
|
_parse_llm_json_array,
|
|
_sanitize_for_json,
|
|
llm_review_entries,
|
|
llm_review_entries_streaming,
|
|
)
|