arabic reverse function

This commit is contained in:
Topdu
2022-08-22 09:53:04 +00:00
parent 09ff249363
commit 2741a84de7
+1 -1
View File
@@ -54,7 +54,7 @@ class BaseRecLabelDecode(object):
pred_re = []
c_current = ''
for c in pred:
if c in self.character[79:]:
if not bool(re.search('[a-zA-Z0-9 ]', c)):
if c_current != '':
pred_re.append(c_current)
pred_re.append(c)