Commit ·
399baae
1
Parent(s): c4a2c4a
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
Browse files
src/css/components.css
CHANGED
|
@@ -991,6 +991,13 @@
|
|
| 991 |
background: var(--color-surface);
|
| 992 |
border: 1px solid var(--color-summary-accent-border);
|
| 993 |
box-shadow: var(--shadow-card);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 994 |
}
|
| 995 |
|
| 996 |
.summary-card__title {
|
|
@@ -1030,6 +1037,7 @@
|
|
| 1030 |
|
| 1031 |
.summary-preview.show {
|
| 1032 |
max-height: 500px;
|
|
|
|
| 1033 |
}
|
| 1034 |
|
| 1035 |
/* ── Mobile bottom sheet ── */
|
|
|
|
| 991 |
background: var(--color-surface);
|
| 992 |
border: 1px solid var(--color-summary-accent-border);
|
| 993 |
box-shadow: var(--shadow-card);
|
| 994 |
+
overflow: visible;
|
| 995 |
+
}
|
| 996 |
+
|
| 997 |
+
/* Summary export dropdown opens upward */
|
| 998 |
+
.summary-card .doc-dropdown__menu {
|
| 999 |
+
top: auto;
|
| 1000 |
+
bottom: calc(100% + 6px);
|
| 1001 |
}
|
| 1002 |
|
| 1003 |
.summary-card__title {
|
|
|
|
| 1037 |
|
| 1038 |
.summary-preview.show {
|
| 1039 |
max-height: 500px;
|
| 1040 |
+
overflow: visible;
|
| 1041 |
}
|
| 1042 |
|
| 1043 |
/* ── Mobile bottom sheet ── */
|
src/nlp/spelling/araspell_service.py
CHANGED
|
@@ -77,7 +77,7 @@ def get_spelling_model():
|
|
| 77 |
epoch = checkpoint.get('epoch', 'N/A')
|
| 78 |
logger.info(f"Spelling model loaded on {device}, epoch: {epoch}")
|
| 79 |
|
| 80 |
-
# 6. Initialize the spell checker pipeline (contextual=
|
| 81 |
from nlp.spelling.araspell_rules import ArabicSpellChecker
|
| 82 |
_spell_checker = ArabicSpellChecker(
|
| 83 |
model, tokenizer, device, use_contextual=True
|
|
|
|
| 77 |
epoch = checkpoint.get('epoch', 'N/A')
|
| 78 |
logger.info(f"Spelling model loaded on {device}, epoch: {epoch}")
|
| 79 |
|
| 80 |
+
# 6. Initialize the spell checker pipeline (contextual=True for MLM-based refinement)
|
| 81 |
from nlp.spelling.araspell_rules import ArabicSpellChecker
|
| 82 |
_spell_checker = ArabicSpellChecker(
|
| 83 |
model, tokenizer, device, use_contextual=True
|