添加日志
This commit is contained in:
@@ -153,7 +153,7 @@ def information_extraction(ie, phrecs):
|
||||
try:
|
||||
ie_results = ie(docs)
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
logging.error("信息抽取时出错:", e)
|
||||
return result
|
||||
finally:
|
||||
for temp_file in docs:
|
||||
@@ -341,6 +341,7 @@ def main():
|
||||
if phhds:
|
||||
for phhd in phhds:
|
||||
pk_phhd = phhd.pk_phhd
|
||||
logging.info(f"开始识别:{pk_phhd}")
|
||||
photo_review(pk_phhd)
|
||||
|
||||
# 识别完成更新标识
|
||||
|
||||
Reference in New Issue
Block a user