Commit ·
5cafd31
1
Parent(s): ae88a6b
feat: always run punctuation even on text without spelling/grammar errors
Browse files- src/app.py +1 -2
src/app.py
CHANGED
|
@@ -2582,8 +2582,7 @@ def analyze_text():
|
|
| 2582 |
# 3. Punctuation (runs on grammar-corrected text — PuncAra-v1 local model)
|
| 2583 |
# FIX-07: Skip punctuation for religious text
|
| 2584 |
# FIX-51: Skip punctuation when spelling+grammar found no errors (clean text)
|
| 2585 |
-
|
| 2586 |
-
if not _is_religious_text and _has_real_corrections:
|
| 2587 |
try:
|
| 2588 |
t0 = time.time()
|
| 2589 |
logger.info(f"[ANALYZE] Step 3: Punctuation starting...")
|
|
|
|
| 2582 |
# 3. Punctuation (runs on grammar-corrected text — PuncAra-v1 local model)
|
| 2583 |
# FIX-07: Skip punctuation for religious text
|
| 2584 |
# FIX-51: Skip punctuation when spelling+grammar found no errors (clean text)
|
| 2585 |
+
if not _is_religious_text:
|
|
|
|
| 2586 |
try:
|
| 2587 |
t0 = time.time()
|
| 2588 |
logger.info(f"[ANALYZE] Step 3: Punctuation starting...")
|