提交 1a5e1be1 编写于 作者: T Topdu

arabic reverse function

上级 2741a84d
...@@ -54,7 +54,7 @@ class BaseRecLabelDecode(object): ...@@ -54,7 +54,7 @@ class BaseRecLabelDecode(object):
pred_re = [] pred_re = []
c_current = '' c_current = ''
for c in pred: for c in pred:
if not bool(re.search('[a-zA-Z0-9 ]', c)): if not bool(re.search('[a-zA-Z0-9 :*./%+-]', c)):
if c_current != '': if c_current != '':
pred_re.append(c_current) pred_re.append(c_current)
pred_re.append(c) pred_re.append(c)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册