信息抽取结果判空
This commit is contained in:
@@ -170,7 +170,7 @@ def information_extraction(phrec, pk_phhd):
|
|||||||
else:
|
else:
|
||||||
tmp_info_extract = []
|
tmp_info_extract = []
|
||||||
|
|
||||||
if len(tmp_info_extract) > len(info_extract):
|
if tmp_info_extract and len(tmp_info_extract) > len(info_extract):
|
||||||
info_extract = tmp_info_extract
|
info_extract = tmp_info_extract
|
||||||
ocr_text = tmp_ocr_text
|
ocr_text = tmp_ocr_text
|
||||||
rec_type = tmp_rec_type
|
rec_type = tmp_rec_type
|
||||||
|
|||||||
Reference in New Issue
Block a user