fix character_type
This commit is contained in:
commit
661e459e3e
|
@ -95,7 +95,7 @@ class BaseRecLabelEncode(object):
|
||||||
'ch', 'en', 'en_sensitive', 'french', 'german', 'japan', 'korean'
|
'ch', 'en', 'en_sensitive', 'french', 'german', 'japan', 'korean'
|
||||||
]
|
]
|
||||||
assert character_type in support_character_type, "Only {} are supported now but get {}".format(
|
assert character_type in support_character_type, "Only {} are supported now but get {}".format(
|
||||||
support_character_type, self.character_str)
|
support_character_type, character_type)
|
||||||
|
|
||||||
self.max_text_len = max_text_length
|
self.max_text_len = max_text_length
|
||||||
if character_type == "en":
|
if character_type == "en":
|
||||||
|
|
|
@ -27,7 +27,7 @@ class BaseRecLabelDecode(object):
|
||||||
'ch', 'en', 'en_sensitive', 'french', 'german', 'japan', 'korean'
|
'ch', 'en', 'en_sensitive', 'french', 'german', 'japan', 'korean'
|
||||||
]
|
]
|
||||||
assert character_type in support_character_type, "Only {} are supported now but get {}".format(
|
assert character_type in support_character_type, "Only {} are supported now but get {}".format(
|
||||||
support_character_type, self.character_str)
|
support_character_type, character_type)
|
||||||
|
|
||||||
if character_type == "en":
|
if character_type == "en":
|
||||||
self.character_str = "0123456789abcdefghijklmnopqrstuvwxyz"
|
self.character_str = "0123456789abcdefghijklmnopqrstuvwxyz"
|
||||||
|
|
Loading…
Reference in New Issue