Unstructured-IO / Unstructured-IO/unstructured

bug/partition where unstructured-inference does not have keyword argument password in get_model()

Open
#3,987 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
15.5k
Forks
1.3k
Avg merge
4d 2h
Merged PRs (30d)
13

Description

Describe the bug
When using partition or partition_pdf on a filepath, it returns me an error due to issues with the unstructured-inference package not being up to date

To Reproduce
file_path = "path_to_my_pdf.pdf"
pdf_elements = partition(file_path , strategy='hi_res', hi_res_model_name='yolox', ocr_mode='none')

Expected behavior
PDF elements returned where I can extract tables without doing an OCR on the whole document so it returns a result faster

Screenshots
Image

Additional context
I am using unstructured 0.17.2 but the dependency is it only lets met install unstructured-inference 0.7.26. There have been additions to both and they need to be synchronised.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided partition(..., strategy='hi_res', hi_res_model_name='yolox', ocr_mode='none') reproduction and inspect the dependency constraints between unstructured 0.17.2 and unstructured-inference 0.7.26. Confirm which versions support the password argument in get_model(); done means filepath partitioning returns PDF elements and table extraction works without full-document OCR.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.