busya
04a20f7d3c
feat(translate): replace LLM-based language detection with local lingua-detector
- Add _lang_detect.py module wrapping lingua-language-detector (pure Python, 0.076ms/call)
- Add batch_detect() with detector caching for performance
- Pre-filter rows where detected source language matches target (same-language skip)
- Remove detected_source_language from LLM prompt templates (token savings)
- Use local detection for cached rows (was always 'und')
- Preserve backward compat: LLM detected_source_language as fallback when lingua returns 'und'
- Add 24 unit tests for detection, edge cases, caching, and mapping
2026-05-20 14:31:37 +03:00
..
2026-05-17 19:23:07 +03:00
2026-05-17 14:18:02 +03:00
2026-05-20 14:31:37 +03:00
2026-05-17 14:18:02 +03:00
2026-05-12 23:54:55 +03:00
2026-05-14 17:12:41 +03:00
2026-02-25 21:19:48 +03:00
2026-05-19 18:36:15 +03:00
2026-03-11 12:20:34 +03:00
2026-05-20 14:31:37 +03:00
2026-05-20 14:31:37 +03:00
2026-05-14 10:28:30 +03:00
2026-05-14 11:20:17 +03:00