Files
breakpilot-lehrer/klausur-service/backend/ocr/gutter/repair.py
Benjamin Admin cb1be59e46
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 39s
CI / test-go-edu-search (push) Successful in 29s
CI / test-python-klausur (push) Failing after 2m34s
CI / test-python-agent-core (push) Successful in 20s
CI / test-nodejs-website (push) Successful in 26s
Restructure: Move 47 cv_* files into ocr/ package
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-25 21:03:54 +02:00

36 lines
859 B
Python

"""
Gutter Repair — barrel re-export.
All implementation split into:
cv_gutter_repair_core — spellchecker setup, data types, single-word repair
cv_gutter_repair_grid — grid analysis, suggestion application
Lizenz: Apache 2.0 (kommerziell nutzbar)
DATENSCHUTZ: Alle Verarbeitung erfolgt lokal.
"""
# Core: spellchecker, data types, repair helpers
from .core import ( # noqa: F401
_init_spellcheckers,
_is_known,
_spell_candidates,
_MIN_WORD_LEN_SPELL,
_MIN_WORD_LEN_HYPHEN,
_GUTTER_EDGE_THRESHOLD,
_STOPWORDS,
_IPA_RE,
_is_ipa_text,
_word_is_at_gutter_edge,
GutterSuggestion,
_TRAILING_PUNCT_RE,
_try_hyphen_join,
_try_spell_fix,
_edit_distance,
)
# Grid: analysis and application
from .grid import ( # noqa: F401
analyse_grid_for_gutter_repair,
apply_gutter_suggestions,
)