Skip to content

Commit

Permalink
fix: ParserError EOF inside string (#470) (#472)
Browse files Browse the repository at this point in the history
Signed-off-by: guglie <[email protected]>
  • Loading branch information
guglie authored Dec 3, 2024
1 parent 5ba3807 commit c90c41c
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 c90c41c

Please sign in to comment.