Add the statement when transferring the last fund name of previous PDF page:

The last fund name of previous PDF page:
page_text = f"\nThe last fund name of previous PDF page: {previous_page_fund_name}\n{page_text}"
This commit is contained in:
Blade He 2024-12-03 11:50:31 -06:00
parent a11a99fdc3
commit 36fbaa946e
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class DataExtraction:
# The purpose is to get fund name if the first records without fund name # The purpose is to get fund name if the first records without fund name
# example document: 431073795, page index 1727 to 1728 # example document: 431073795, page index 1727 to 1728
logger.info(f"Transfer previous page fund name: {previous_page_fund_name} to be the pre-fix of page text") logger.info(f"Transfer previous page fund name: {previous_page_fund_name} to be the pre-fix of page text")
page_text = f"\n{previous_page_fund_name}\n{page_text}" page_text = f"\nThe last fund name of previous PDF page: {previous_page_fund_name}\n{page_text}"
extract_data = self.extract_data_by_page( extract_data = self.extract_data_by_page(
page_num, page_num,