Skip to content

Commit e0b4d8c

Browse files
author
yuan.wang
committed
remove print
1 parent f417cd0 commit e0b4d8c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/memos/mem_reader/simple_struct.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def detect_lang(text):
7878
chinese_pattern = r"[\u4e00-\u9fff\u3400-\u4dbf\U00020000-\U0002a6df\U0002a700-\U0002b73f\U0002b740-\U0002b81f\U0002b820-\U0002ceaf\uf900-\ufaff]"
7979
chinese_chars = re.findall(chinese_pattern, cleaned_text)
8080
text_without_special = re.sub(r"[\s\d\W]", "", cleaned_text)
81-
print(text_without_special)
8281
if text_without_special and len(chinese_chars) / len(text_without_special) > 0.3:
8382
return "zh"
8483
return "en"

0 commit comments

Comments
 (0)