Unstructured-IO / Unstructured-IO/unstructured
Error must install unstructured_pytesseract when using paddleocr
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 15.5k
- Forks
- 1.3k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 13
Description
Version:
unstructured: 0.17.2
unstructured-client: 0.36.0
unstructured-inference: 1.0.2
unstructured_paddleocr: 2.10.0
paddlepaddle: 3.0.0
Set env
os.environ["OCR_AGENT"] = "unstructured.partition.utils.ocr_models.paddle_ocr.OCRAgentPaddle"
I'm using paddle as my OCR model, but when I run this code
raw_pdf = partition_pdf( filename=filepath, strategy="hi_res", infer_table_structure=True, extract_images_in_pdf=True, # extract_image_block_types=["Image", "Table"], # extract_image_block_output_dir=path, chunking_strategy="by_title", max_characters=4000, new_after_n_chars=3800, combine_text_under_n_chars=2000, )
it shows error:
ModuleNotFoundError: No module named 'unstructured_pytesseract'
Why do I have to install unstructured_pytesseract when I already have unstructured_paddleocr?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with partition_pdf using the OCRAgentPaddle entry point and the versions listed in the issue. Trace why this configuration imports unstructured_pytesseract, then confirm whether the dependency behavior should be corrected or documented so the issue's reported error is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100