Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
fe8ce9af
".github/vscode:/vscode.git/clone" did not exist on "d27e996ccdecbddaf37f1c41a9d0a0e6fabb4fbf"
Commit
fe8ce9af
authored
Aug 16, 2020
by
tink2123
Browse files
polish code
parent
a3b29192
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ppocr/utils/character.py
ppocr/utils/character.py
+2
-0
No files found.
ppocr/utils/character.py
View file @
fe8ce9af
...
@@ -30,6 +30,8 @@ class CharacterOps(object):
...
@@ -30,6 +30,8 @@ class CharacterOps(object):
self
.
character_str
=
"0123456789abcdefghijklmnopqrstuvwxyz"
self
.
character_str
=
"0123456789abcdefghijklmnopqrstuvwxyz"
dict_character
=
list
(
self
.
character_str
)
dict_character
=
list
(
self
.
character_str
)
elif
self
.
character_type
==
"ch"
:
elif
self
.
character_type
==
"ch"
:
if
self
.
loss_type
==
"srn"
:
raise
Exception
(
"SRN can only support in character_type == en"
)
character_dict_path
=
config
[
'character_dict_path'
]
character_dict_path
=
config
[
'character_dict_path'
]
add_space
=
False
add_space
=
False
if
'use_space_char'
in
config
:
if
'use_space_char'
in
config
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment