Skip to content

Commit

Permalink
fix: ParserError EOF inside string (DS4SD#470) (DS4SD#472)
Browse files Browse the repository at this point in the history
Signed-off-by: guglie <[email protected]>
  • Loading branch information
guglie authored and lucas-morin committed Dec 10, 2024
1 parent 756005e commit d1244a5
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 os
Expand Down Expand Up @@ -96,7 +97,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 d1244a5

Please sign in to comment.