Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dictmap committed Oct 16, 2023
1 parent d3acd57 commit f00f158
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/finglm_all/prepare_model/text2es.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def prepare_es(self, text, re_dict):
body['query']={}
body['query']['bool']= {}
body['query']['bool']['must'] = list1
body['_source'] = ['公司名称']
body['sort'] = [dict2]
body['size'] = num
es = text + '####' + str(body)
Expand Down Expand Up @@ -219,6 +220,7 @@ def prepare_es(self, text, re_dict):
body['query']={}
body['query']['bool']= {}
body['query']['bool']['must'] = list1
body['_source'] = ['公司名称']
body['sort'] = [dict2]
body['size'] = num
es = text + '####' + str(body)
Expand Down Expand Up @@ -246,6 +248,7 @@ def prepare_es(self, text, re_dict):
body['query']={}
body['query']['bool']= {}
body['query']['bool']['must'] = list1
body['_source'] = ['公司名称']
body['sort'] = [dict2]
body['size'] = 1
es = text + '####' + str(body)
Expand Down

0 comments on commit f00f158

Please sign in to comment.