|
@@ -2265,11 +2265,12 @@ def findAttributeAfterEntity(PackDict,roleSet,PackageList,PackageSet,list_entity
|
|
|
if PackDict[k]["roleList"][0].role_name == "tenderee":
|
|
|
if not PackDict[k]["roleList"][0].linklist:
|
|
|
for _entity in temporary_list2[::-1]:
|
|
|
- if _entity.entity_type=='person' and _entity.label==3 and len(_entity.person_phone)>0:
|
|
|
- _phone = [p.entity_text for p in _entity.person_phone]
|
|
|
- for _p in _phone:
|
|
|
- PackDict[k]["roleList"][0].linklist.append((_entity.entity_text, _p))
|
|
|
- break
|
|
|
+ if _entity.entity_type=='person' and _entity.label==3:
|
|
|
+ if _entity.person_phone:
|
|
|
+ _phone = [p.entity_text for p in _entity.person_phone]
|
|
|
+ for _p in _phone:
|
|
|
+ PackDict[k]["roleList"][0].linklist.append((_entity.entity_text, _p))
|
|
|
+ break
|
|
|
|
|
|
for pack in PackDict.keys():
|
|
|
for i in range(len(PackDict[pack]["roleList"])):
|