Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

### Fixes
- **Fix EN DASH not cleaned by `clean_bullets`**: Added EN DASH (`\u2013`) to `UNICODE_BULLETS` pattern so `clean_bullets` properly removes EN DASH bullet points without requiring `clean_dashes` (fixes #4105)
- **Change `languages` parameter default from `["auto"]` to `None`**: Updated default value in `detect_languages()` and `partition_epub()` functions. Behavior unchanged as `None` is converted to `["auto"]` internally. (fixes #2471)
- Resolve GHSA-58pv-8j8x-9vj2
- **Fix NameError in paddle_ocr.py**: Added missing import for `LayoutElements` from `unstructured_inference.inference.layoutelement` in `OCRAgentPaddle.get_layout_elements_from_image` method

## 0.18.29

Expand Down
2 changes: 2 additions & 0 deletions unstructured/partition/utils/ocr_models/paddle_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def get_layout_from_image(self, image: PILImage.Image) -> TextRegions:

@requires_dependencies("unstructured_inference")
def get_layout_elements_from_image(self, image: PILImage.Image) -> LayoutElements:
from unstructured_inference.inference.layoutelement import LayoutElements

ocr_regions = self.get_layout_from_image(image)

# NOTE(christine): For paddle, there is no difference in `ocr_layout` and `ocr_text` in
Expand Down