You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Summary
- sort elements extracted by `pdfminer` to get consistent results from
`aggregate_by_block()`
### Testing
PDF:
[recalibrating-risk-report_4-4.pdf](https://github.com/Unstructured-IO/unstructured-inference/files/12835342/recalibrating-risk-report_4-4.pdf)
```
f_path = "dist/docs/recalibrating-risk-report_4-4.pdf"
layout = process_file_with_model(
filename=f_path,
model_name=None,
)
elements = layout.pages[0].elements
print("\n\n".join([str(el) for el in elements]))
print(len(elements))
```
0 commit comments