Skip to content

Commit

Permalink
Merge pull request #1132 from llmware-ai/update-parser-table-config
Browse files Browse the repository at this point in the history
update table strategy config
  • Loading branch information
doberst authored Dec 19, 2024
2 parents 53e34be + db27c6f commit ff2f0e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion llmware/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2687,8 +2687,12 @@ def parse_one_pdf (self, fp, fn, save_history=True):
else:
strip_header = c_int(0)

# update - expose configs for table extraction strategy
if self.get_tables:
table_extract = c_int(1)
if 0 <= self.table_strategy <= 2:
table_extract = c_int(self.table_strategy)
else:
table_extract = c_int(1)
else:
table_extract = c_int(0)

Expand Down

0 comments on commit ff2f0e2

Please sign in to comment.