bayan-api / src /nlp /spelling /araspell_service.py

Commit History

Fix 30 NLP edge cases in Grammar, Spelling, and Punctuation (Phase 10 results and Extension UI improvements)
be32617

youssefreda9 commited on

Fix: TerminalPunctuationGuard for short phrases and comprehensive Nasb/Jazm grammar rules fixes
76b9ec3

Bayan AI commited on

fix: PDF dropdown visible + verify spelling context + araspell audit - Fix summary export dropdown clipping (overflow: visible + opens upward) - Verify: use_contextual=True in araspell_service.py (line 83) ✓ - Verify: ContextualCorrector fully initialized and used in pipeline ✓ - Verify: All araspell_rules.py classes used: AraSpellPostProcessor, ErrorClassifier, RulesBasedCorrector, OutputValidator, VocabularyManager, WordAligner, SplitMergeSpecialist, EditDistanceCorrector, ContextualCorrector, ArabicSpellChecker ✓ - Fix misleading comment about contextual=False
d4b662b

youssefreda9 commited on

feat: Enable ContextualCorrector (BERT MLM) for spelling - Pre-download AutoModelForMaskedLM in Dockerfile
bcf3607

youssefreda9 commited on

feat: Add AraSpell spelling correction endpoint (POST /api/spelling) with lazy model loading - Extract AraSpell pipeline into src/nlp/spelling/ (araspell_rules.py + araspell_service.py) - Pre-download AraBERT encoder-decoder + checkpoint in Dockerfile - Lazy load on first request, contextual=False to save RAM - Update health check to report spelling status
53f433b

youssefreda9 commited on