feat: load glossary corrections from file when available
This commit is contained in:
@@ -144,3 +144,11 @@ The project now features a high-performance, Apple Silicon-optimized pipeline th
|
||||
- **Glossary Replacements:** Added configurable `SOURCE=TARGET` term normalization (`--glossary-pair`) to consistently correct names/terms in English captions.
|
||||
- **Rolling Caption Revision Buffer:** Added a short correction window (`--caption-correction-window`, default 3s) with a 2-line rolling buffer that can merge incomplete English lines into a cleaner sentence as new context arrives.
|
||||
- **Outcome:** Captions now support lightweight post-correction behavior that improves continuity and term consistency while remaining compatible with real-time streaming.
|
||||
|
||||
## Phase 18: File-Based Glossary Loading
|
||||
- **Goal:** Make glossary corrections persistent and easier to maintain without long CLI commands.
|
||||
- **Approach:**
|
||||
- Added `--glossary-file` (default `glossary.txt`) to load `SOURCE=TARGET` term mappings when the file exists.
|
||||
- Implemented comment/blank-line support and invalid-line skipping with line-level warnings.
|
||||
- Merged file-based glossary entries with repeatable `--glossary-pair` CLI entries for runtime overrides.
|
||||
- **Outcome:** English caption correction can now use a maintained glossary file automatically, while preserving ad-hoc CLI term fixes.
|
||||
|
||||
Reference in New Issue
Block a user