bug/pdf-extraction-bug
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the issue with the linked 2025.findings-naacl.114.pdf and inspect the partition_pdf path around self._partition(**self._build_partition_kwargs(loaded)). Compare the returned elements with the expected text and metadata, then add a regression test once the parsing failure is isolated.
Written by the indexing model from the issue text.
Description
Describe the bug
While partition_pdf or partition(text.. ) this method is working for docx, txt however for some pdfs it is not parsing well especially academic papers.
To Reproduce
elements = self._partition(**self._build_partition_kwargs(loaded))
Expected behavior
Should return a simple text inside the elements list with some metadata.
Screenshots
**Environment Info**
name = "unstructured"
version = "0.17.2"
description = "A library that prepares raw documents for downstream ML tasks."
optional = false
python-versions = ">=3.9.0"
groups = ["main"]
files = [
{file = "unstructured-0.17.2-py3-none-any.whl", hash = ..
{file = "unstructured-0.17.2.tar.gz", hash = ..
Additional context
I will upload the pdf example that is not working.
- Dominant language
- HTML
- Stars
- 15.8k
- Forks
- 1.4k
- Avg merge
- 8d 4h
- Merged PRs (30d)
- 40
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from Unstructured-IO/unstructured
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Unstructured-IO/unstructured#4876 ·
Maintainers usually reply within 6 days
-
bug: partition_email() raises io.UnsupportedOperation on a file-like object that cannot seekPossibly taken @Bensonluo claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Unstructured-IO/unstructured#4864 ·
Maintainers usually reply within 6 days
-
fix(nlp): match single-letter bullets in the enumerated bullet patternPossibly taken @Eapp1e claimed this 33 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Unstructured-IO/unstructured#4635 ·
Maintainers usually reply within 6 days
-
bug(cleaners): translate_text passes text instead of chunk in attention window loopPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Unstructured-IO/unstructured#4558 · 1 comment ·
Maintainers usually reply within 6 days
-
extract_text_before/extract_text_after raise UnboundLocalError when the pattern is absentPossibly taken @ayam04 claimed this 103 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Unstructured-IO/unstructured#4427 · 3 comments ·
Maintainers usually reply within 6 days
All issues in Unstructured-IO/unstructured
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
fairagro/m4.2_sql_to_arc#388 ·
Maintainers usually reply within 1 day
-
Add: FAP TV Gay FeedOpencheck:failed feeds:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
iptv-org/database#40182 · 1 comment ·
Maintainers usually reply within 1 day
-
copilot-metrics
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area: explore bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nplhse/collaborative-ivena-statistics#2107 ·
Maintainers usually reply within 1 day