From db27c6f51be6142e57a080e8a847125618a7eafe Mon Sep 17 00:00:00 2001 From: DARREN OBERST Date: Thu, 19 Dec 2024 12:40:09 -0500 Subject: [PATCH] update table strategy config --- llmware/parsers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llmware/parsers.py b/llmware/parsers.py index 3f83aeac..8c9c8c0b 100644 --- a/llmware/parsers.py +++ b/llmware/parsers.py @@ -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)