Unverified Commit 84bf6572 authored by xiaoting's avatar xiaoting Committed by GitHub
Browse files

Merge pull request #1929 from tink2123/fix_typo

fix typo for encode
parents d36a929b 44420593
......@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment