Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/Partition_html Function Fails to Extract Accordion Titles #3919

Open
honeylane opened this issue Feb 12, 2025 · 0 comments
Open

bug/Partition_html Function Fails to Extract Accordion Titles #3919

honeylane opened this issue Feb 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@honeylane
Copy link

Describe the bug
The partition_html function fails to extract accordion titles. For example, when applied to the following FAQ page:
Phonak FAQ, the extracted elements do not include the questions.

To Reproduce
from unstructured.partition.html import partition_html

url = "https://www.phonak.com/en-int/support-options/frequently-asked-questions"
elements = partition_html(url=url)

for el in elements:
print(el.to_dict())

Expected behavior
The extracted elements should include the FAQ questions as titles.
For example, a question like:
"Which Bluetooth profiles are required to support my Phonak hearing aids?"
should appear in the parsed output as a title element.

Screenshots

Image

Environment Info
Python Version: 3.12.6 (tags/v3.12.6:a4a2d2b, Sep 6 2024, 20:11:23) [MSC v.1940 64 bit (AMD64)]
Platform: Windows-11-10.0.22631-SP0
unstructured 0.16.15
unstructured-client 0.29.0
unstructured-inference 0.8.6
unstructured-ingest 0.4.0
unstructured.pytesseract 0.3.13

Additional context
Add any other context about the problem here.

@honeylane honeylane added the bug Something isn't working label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant