|
@@ -303,14 +303,14 @@ def match_enterprise_max_first(sentence):
|
|
if enter_tail in SET_TAIL_ENTERPRISE:
|
|
if enter_tail in SET_TAIL_ENTERPRISE:
|
|
if is_enterprise_exist(enter_name):
|
|
if is_enterprise_exist(enter_name):
|
|
match_item = {"entity_text":"%s"%(enter_name),"begin_index":begin_index,"end_index":begin_index+len(enter_name)}
|
|
match_item = {"entity_text":"%s"%(enter_name),"begin_index":begin_index,"end_index":begin_index+len(enter_name)}
|
|
- print("match_item",key_enter,enter_name)
|
|
|
|
|
|
+ # print("match_item",key_enter,enter_name)
|
|
list_match.append(match_item)
|
|
list_match.append(match_item)
|
|
begin_index += (len(key_enter)+len(enter_name))-1
|
|
begin_index += (len(key_enter)+len(enter_name))-1
|
|
break
|
|
break
|
|
begin_index += 1
|
|
begin_index += 1
|
|
else:
|
|
else:
|
|
break
|
|
break
|
|
- print("======",list_match)
|
|
|
|
|
|
+ # print("======",list_match)
|
|
return list_match
|
|
return list_match
|
|
|
|
|
|
def calibrateEnterprise(list_articles,list_sentences,list_entitys):
|
|
def calibrateEnterprise(list_articles,list_sentences,list_entitys):
|