提交 6cded42b 编写于 作者: T Topdu

fix arabic postprocess bug

上级 1a5e1be1
......@@ -38,6 +38,10 @@ class BaseRecLabelDecode(object):
if use_space_char:
self.character_str.append(" ")
dict_character = list(self.character_str)
if 'arabic' in character_dict_path:
self.reverse = True
else:
self.reverse = False
dict_character = self.add_special_char(dict_character)
self.dict = {}
......@@ -45,11 +49,6 @@ class BaseRecLabelDecode(object):
self.dict[char] = i
self.character = dict_character
if 'arabic' in character_dict_path:
self.reverse = True
else:
self.reverse = False
def pred_reverse(self, pred):
pred_re = []
c_current = ''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册