tujintao hai 10 meses
pai
achega
b3dd34355a
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. BIN=BIN
      main_clear/__pycache__/sci_clear.cpython-38.pyc
  2. 3 3
      main_clear/sci_clear.py

BIN=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)