Commit ed1a6f27 by lichenggang

更新位号的正则

parent 581d7da5
Showing with 2 additions and 1 deletions
...@@ -177,7 +177,8 @@ class BasePredictor: ...@@ -177,7 +177,8 @@ class BasePredictor:
""" """
位号列预测 位号列预测
""" """
pat = re.compile(r'[CJRULX][1-9]{1,3}') # pat = re.compile(r'[CJRULX][1-9]{1,3}')
pat = re.compile(r'(?<!.)[CJRULX][1-9]{1,3}(?![^,,/  ])')
count = 0 count = 0
for i in data: for i in data:
if pat.findall(str(i)): if pat.findall(str(i)):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment