tujintao 10 months ago
parent
commit
b3dd34355a
2 changed files with 3 additions and 3 deletions
  1. BIN
      main_clear/__pycache__/sci_clear.cpython-38.pyc
  2. 3 3
      main_clear/sci_clear.py

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)