b9e0884e by 冯轩

Merge branch 'feature/fsm-contract' into feature/uat-tmp

2 parents 3474c20c 4c67581e
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!