tujintao há 10 meses atrás
pai
commit
b3dd34355a

BIN
main_clear/__pycache__/sci_clear.cpython-38.pyc


+ 3 - 3
main_clear/sci_clear.py

@@ -174,9 +174,9 @@ def get_maplef_items(html):
     s = re.sub(r'/([0-9a-z/*.]*?)(png|jpg|gif)', 'img', s)
 
     s = unicodedata.normalize('NFKC', s)  # 中文符号转换成英文
-    s = s.replace(",", ",").replace(":", ":").replace(";", ";").replace("“", "'").replace("”", "'"). \
-        replace("?", "?").replace("!", "!").replace("。", ",").replace("(", "(").replace(")", ")"). \
-        replace(".", ".").replace("【", "[").replace("】", "]")
+    # s = s.replace(",", ",").replace(":", ":").replace(";", ";").replace("“", "'").replace("”", "'"). \
+    #     replace("?", "?").replace("!", "!").replace("。", ",").replace("(", "(").replace(")", ")"). \
+    #     replace(".", ".").replace("【", "[").replace("】", "]")
     
     # tjt修改支持"=   ."或"=___."处理
     s = re.sub(r"[==][ _]*\.?$", "等于多少", s)