未验证 提交 60effbd7 编写于 作者: X xiaoting 提交者: GitHub

Merge pull request #1928 from tink2123/cherry-pick

[cherry-pick]fix typo for encode
......@@ -255,7 +255,7 @@ class SRNLabelEncode(BaseRecLabelEncode):
def __call__(self, data):
text = data['label']
text = self.encode(text)
char_num = len(self.character_str)
char_num = len(self.character)
if text is None:
return None
if len(text) > self.max_text_len:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册