Skip to content

Commit

Permalink
fix: ParserError EOF inside string (DS4SD#470)
Browse files Browse the repository at this point in the history
Signed-off-by: guglie <[email protected]>
  • Loading branch information
guglie authored Nov 29, 2024
1 parent cc46c93 commit a523059
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docling/models/tesseract_ocr_cli_model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import csv
import io
import logging
import tempfile
Expand Down Expand Up @@ -95,7 +96,7 @@ def _run_tesseract(self, ifilename: str):
# _log.info(decoded_data)

# Read the TSV file generated by Tesseract
df = pd.read_csv(io.StringIO(decoded_data), sep="\t")
df = pd.read_csv(io.StringIO(decoded_data), quoting=csv.QUOTE_NONE, sep="\t")

# Display the dataframe (optional)
# _log.info("df: ", df.head())
Expand Down

0 comments on commit a523059

Please sign in to comment.