refactor(stage-1): eliminate dead parse_text, simplify task progress SQL, remove prompt hacks
This commit is contained in:
1 parent
6c2d94773c
commit
20eef2c684
3 files changed
+19
-95
No files matched your search
@@ -74,10 +74,6 @@ def get_sentence_dictionary_hints(sentence: str, target_word: str = "") -> str:
|
||||
return ""
|
||||
|
||||
hints = []
|
||||
special_guidance = {
|
||||
"owl": "owl — это сова/неясыть (ни в коем случае НЕ орёл!)",
|
||||
"tawny owl": "tawny owl — это сова/неясыть (птица семейства совиных, ни в коем случае НЕ орёл!)",
|
||||
}
|
||||
|
||||
try:
|
||||
with get_db() as conn:
|
||||
@@ -98,11 +94,7 @@ def get_sentence_dictionary_hints(sentence: str, target_word: str = "") -> str:
|
||||
continue
|
||||
seen_terms.add(cand)
|
||||
trans = matched_dict[cand]
|
||||
guidance = special_guidance.get(cand, "")
|
||||
if guidance:
|
||||
hints.append(f"- {cand}: {trans} (ВНИМАНИЕ: {guidance})")
|
||||
else:
|
||||
hints.append(f"- {cand}: {trans}")
|
||||
hints.append(f"- {cand}: {trans}")
|
||||
|
||||
if len(hints) >= 8:
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user