Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ab354761
authored
2023-02-07 17:04:53 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix hmh
1 parent
846c5468
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/common/fsm_econtract/retriever.py
src/common/fsm_econtract/retriever.py
View file @
ab35476
...
...
@@ -6,6 +6,7 @@ class HMHRetriever:
def
__init__
(
self
):
self
.
words_str
=
'words'
self
.
position_str
=
'location'
self
.
fix_hava_str
=
'有'
self
.
default_position
=
[
0
,
0
,
0
,
0
]
self
.
search_fields_list
=
[
(
'借款/承租人姓名'
,
''
),
...
...
@@ -51,7 +52,8 @@ class HMHRetriever:
for
name_date_tuple
in
name_date_list
:
if
len
(
name_date_tuple
)
==
2
:
result
[
self
.
search_fields_list
[
4
][
0
]]
=
{
self
.
words_str
:
'{0} {1}'
.
format
(
name_date_tuple
[
0
]
.
replace
(
'
\u3000
'
,
''
)
.
strip
(),
name_date_tuple
[
1
]),
# self.words_str: '{0} {1}'.format(name_date_tuple[0].replace('\u3000', '').strip(), name_date_tuple[1]),
self
.
words_str
:
self
.
fix_hava_str
,
self
.
position_str
:
bbox
}
is_find_name_date
=
True
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment