Merged dev into bugfix/retire_stale_client_file_processing
This commit is contained in:
@@ -58,6 +58,11 @@ def process_file(file_object, constants: Constants, run_timestamp):
|
||||
with timing_utils.timed_block("preprocess", context=filename):
|
||||
contract_text = preprocess.clean_text(contract_text)
|
||||
text_dict, top_sheet_dict = preprocess.split_text(contract_text)
|
||||
if not text_dict:
|
||||
logging.warning(
|
||||
f"{datetime_str()} All pages removed as cover sheets, skipping processing - {filename}"
|
||||
)
|
||||
return final_results, pd.DataFrame([{"FILE_NAME": filename}])
|
||||
text_dict, removal_metadata = preprocess.clean_header_footer(text_dict)
|
||||
# ONE TO N PROCESSING
|
||||
one_to_n_results = pd.DataFrame() # Initialize empty DataFrame for one_to_n_results
|
||||
|
||||
Reference in New Issue
Block a user