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