Merge branch 'feature/fsm-contract' into feature/uat-tmp
Showing
3 changed files
with
3 additions
and
1 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
| ... | @@ -6,6 +6,7 @@ class HMHRetriever: | ... | @@ -6,6 +6,7 @@ class HMHRetriever: |
| 6 | def __init__(self): | 6 | def __init__(self): |
| 7 | self.words_str = 'words' | 7 | self.words_str = 'words' |
| 8 | self.position_str = 'location' | 8 | self.position_str = 'location' |
| 9 | self.fix_hava_str = '有' | ||
| 9 | self.default_position = [0, 0, 0, 0] | 10 | self.default_position = [0, 0, 0, 0] |
| 10 | self.search_fields_list = [ | 11 | self.search_fields_list = [ |
| 11 | ('借款/承租人姓名', ''), | 12 | ('借款/承租人姓名', ''), |
| ... | @@ -51,7 +52,8 @@ class HMHRetriever: | ... | @@ -51,7 +52,8 @@ class HMHRetriever: |
| 51 | for name_date_tuple in name_date_list: | 52 | for name_date_tuple in name_date_list: |
| 52 | if len(name_date_tuple) == 2: | 53 | if len(name_date_tuple) == 2: |
| 53 | result[self.search_fields_list[4][0]] = { | 54 | result[self.search_fields_list[4][0]] = { |
| 54 | self.words_str: '{0} {1}'.format(name_date_tuple[0].replace('\u3000', '').strip(), name_date_tuple[1]), | 55 | # self.words_str: '{0} {1}'.format(name_date_tuple[0].replace('\u3000', '').strip(), name_date_tuple[1]), |
| 56 | self.words_str: self.fix_hava_str, | ||
| 55 | self.position_str: bbox | 57 | self.position_str: bbox |
| 56 | } | 58 | } |
| 57 | is_find_name_date = True | 59 | is_find_name_date = True | ... | ... |
-
Please register or sign in to post a comment