|
@@ -2875,10 +2875,17 @@ def getPREMs(list_sentences,list_entitys,list_articles,list_outlines):
|
|
result = []
|
|
result = []
|
|
for list_sentence,list_entity,list_article,list_outline in zip(list_sentences,list_entitys,list_articles,list_outlines):
|
|
for list_sentence,list_entity,list_article,list_outline in zip(list_sentences,list_entitys,list_articles,list_outlines):
|
|
RoleList = getPackageRoleMoney(list_sentence,list_entity,list_outline)
|
|
RoleList = getPackageRoleMoney(list_sentence,list_entity,list_outline)
|
|
- result.append(dict({"prem":RoleList,"docid":list_article.doc_id},**getOtherAttributes(list_entity),**getTimeAttributes(list_entity,list_sentence),
|
|
|
|
- **{"fingerprint":list_article.fingerprint,"match_enterprise":list_article.match_enterprise,
|
|
|
|
- "match_enterprise_type":list_article.match_enterprise_type,"process_time":getCurrent_date(),
|
|
|
|
- "attachmentTypes":list_article.attachmentTypes, "bidway": list_article.bidway}))
|
|
|
|
|
|
+ result.append(dict({"prem": RoleList, "docid": list_article.doc_id},
|
|
|
|
+ **getTimeAttributes(list_entity, list_sentence),
|
|
|
|
+ **{"fingerprint": list_article.fingerprint,
|
|
|
|
+ "match_enterprise": list_article.match_enterprise,
|
|
|
|
+ "match_enterprise_type": list_article.match_enterprise_type,
|
|
|
|
+ "process_time": getCurrent_date(),
|
|
|
|
+ "attachmentTypes": list_article.attachmentTypes, "bidway": list_article.bidway}))
|
|
|
|
+ # result.append(dict({"prem":RoleList,"docid":list_article.doc_id},**getOtherAttributes(list_entity),**getTimeAttributes(list_entity,list_sentence),
|
|
|
|
+ # **{"fingerprint":list_article.fingerprint,"match_enterprise":list_article.match_enterprise,
|
|
|
|
+ # "match_enterprise_type":list_article.match_enterprise_type,"process_time":getCurrent_date(),
|
|
|
|
+ # "attachmentTypes":list_article.attachmentTypes, "bidway": list_article.bidway}))
|
|
return result
|
|
return result
|
|
|
|
|
|
|
|
|