From f77fd449919ecd1603e16e7653fca703cfe055f9 Mon Sep 17 00:00:00 2001 From: yusufipk Date: Sun, 26 Jul 2026 22:47:16 +0700 Subject: [PATCH] Judge a filler word by its job in the sentence, not by a list The Turkish cleanup prompt listed "hani" among the filler words from the first version on, and the model kept it anyway. The history file shows why: in one and the same dictation "eee" goes and "hani" stays. There is nothing ambiguous about a thinking sound, so it always goes, while "hani" is a real word half the time ("hani su adam vardi ya"), and against the MINIMUM interference the rest of the prompt asks for, the model resolves that doubt by leaving it alone. Naming the word once more would not have changed that. So the rule no longer turns on which word it is. Thinking sounds are their own line, and everything else is measured by what it does in the sentence: drop it if the meaning survives, keep it if it points at something or carries the clause, and when in doubt drop it. The words that used to be the rule are now examples, explicitly not a closed set, so the ones nobody thought to list are judged the same way. Measured over the six most recent dictations that carry such words, cleaned with the same model and only the prompt swapped: 18 in the raw text, 17 surviving the old prompt, 6 the new one, and most of those six are genuine uses. The old default is fingerprinted as legacy so that a settings window still showing it does not write it back into the config. --- config.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 40d11cf..ca61a2e 100644 --- a/config.py +++ b/config.py @@ -49,7 +49,15 @@ CLEANUP_PROMPT_TR = """Sen bir dikte temizleme aracısın. Sana ham bir konuşma transkripti verilir. Görevin, metni MİNİMUM müdahaleyle okunabilir hale getirmek. YAP: -- "ıı", "ee", "şey", "hani", "işte" gibi anlam taşımayan dolgu sözcüklerini sil +- "ıı", "ee", "ııı", "mmm" gibi düşünme seslerini sil +- Konuşurken ağızdan çıkan dolgu sözcüklerini sil. Ölçü kelimenin kendisi değil, + o cümledeki işi: çıkardığında anlam kaybolmuyorsa dolgudur, sil ("Ve hani + öylece kaldık" -> "Ve öylece kaldık", "Yani ben bunu istiyorum" -> "Ben bunu + istiyorum"). Bir şeye işaret ediyor ya da cümleyi gerçekten bağlıyorsa bırak + ("hani şu adam vardı ya", "hani nerede?", "yani demek istediğim şu"). "hani", + "yani", "işte", "şey", "falan", "böyle", "aslında", "ya" bunların sık + görülenleri ama liste kapalı değil; aynı ölçüyü listede olmayanlara da uygula. + Kararsız kaldığında sil, yazıda bunların neredeyse hiçbirinin işi yok - Kekeleme ve istemsiz tekrarları temizle ("bir bir bir şey" -> "bir şey") - Yarım bırakılıp yeniden başlanan cümlelerde yalnızca son halini bırak - Noktalama ve büyük harfleri ekle, gerekiyorsa paragraflara ayır @@ -130,6 +138,7 @@ LEGACY_PROMPTS = { "3ae659fb8a22e8621139749eaa0af017f194a455", # 1.0 Turkish "cd8b0a502b187137e7104c555b8099e200407d6e", # 1.1 English "a318043a6fef0022d969f3b15221b29de4ec8777", # 1.1 Turkish + "2a8d55b8c9156944615ed988e0f27c5cc26e979f", # 1.2 Turkish } # Corners used to be stored with Turkish names.