调整taskflow的生成位置

This commit is contained in:
2024-06-26 13:02:54 +08:00
parent 94d5c9b00f
commit 403858a287
2 changed files with 21 additions and 17 deletions

View File

@@ -20,14 +20,14 @@ LAYOUT_ANALYSIS = False
# 可使用的GPU
CUDA_VISIBLE_DEVICES = "1"
# 基本医保结算单
SETTLEMENT_IE = Taskflow("information_extraction", schema=SETTLEMENT_LIST_SCHEMA, model="uie-x-base",
task_path="config/model/settlement_list_model", layout_analysis=LAYOUT_ANALYSIS)
# 出院记录
DISCHARGE_IE = Taskflow("information_extraction", schema=DISCHARGE_RECORD_SCHEMA, model="uie-x-base",
task_path="config/model/discharge_record_model", layout_analysis=LAYOUT_ANALYSIS)
# 费用清单
COST_IE = Taskflow("information_extraction", schema=COST_LIST_SCHEMA, model="uie-x-base",
task_path="config/model/cost_list_model", layout_analysis=LAYOUT_ANALYSIS)
# # 基本医保结算单
# SETTLEMENT_IE = Taskflow("information_extraction", schema=SETTLEMENT_LIST_SCHEMA, model="uie-x-base",
# task_path="config/model/settlement_list_model", layout_analysis=LAYOUT_ANALYSIS)
#
# # 出院记录
# DISCHARGE_IE = Taskflow("information_extraction", schema=DISCHARGE_RECORD_SCHEMA, model="uie-x-base",
# task_path="config/model/discharge_record_model", layout_analysis=LAYOUT_ANALYSIS)
#
# # 费用清单
# COST_IE = Taskflow("information_extraction", schema=COST_LIST_SCHEMA, model="uie-x-base",
# task_path="config/model/cost_list_model", layout_analysis=LAYOUT_ANALYSIS)