Marthee commited on
Commit
2f8e4b1
·
verified ·
1 Parent(s): 59e818b

Update InitialMarkups.py

Browse files
Files changed (1) hide show
  1. InitialMarkups.py +5 -5
InitialMarkups.py CHANGED
@@ -1247,13 +1247,13 @@ def extract_section_under_header_tobebilledOnly(pdf_path):
1247
  else:
1248
  combined_line_norm = line_text_norm
1249
 
1250
- # Check if we should continue processing
1251
- if combined_line_norm and combined_line_norm in paths[0]:
1252
 
1253
- headertoContinue1 = combined_line_norm
1254
- if combined_line_norm and combined_line_norm in paths[-2]:
1255
 
1256
- headertoContinue2 = combined_line_norm
1257
  if 'installation' in paths[-2].lower() or 'execution' in paths[-2].lower() or 'miscellaneous items' in paths[-2].lower() :
1258
  # if any(word in paths[-2].lower() for word in keywordstoSkip):
1259
  stringtowrite='Not to be billed'
 
1247
  else:
1248
  combined_line_norm = line_text_norm
1249
 
1250
+ # # Check if we should continue processing
1251
+ # if combined_line_norm and combined_line_norm in paths[0]:
1252
 
1253
+ # headertoContinue1 = combined_line_norm
1254
+ # if combined_line_norm and combined_line_norm in paths[-2]:
1255
 
1256
+ # headertoContinue2 = combined_line_norm
1257
  if 'installation' in paths[-2].lower() or 'execution' in paths[-2].lower() or 'miscellaneous items' in paths[-2].lower() :
1258
  # if any(word in paths[-2].lower() for word in keywordstoSkip):
1259
  stringtowrite='Not to be billed'