Skip to content
Open
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
4 changes: 2 additions & 2 deletions unstructured/partition/pdf_image/pdfminer_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _minimum_containing_coords(*regions: TextRegions) -> np.ndarray:

def _inferred_is_elementtype(
inferred_layout: LayoutElements, etypes: Iterable[ElementType]
) -> np.ndarry:
) -> np.ndarray:
inferred_text_idx = [
idx
for idx, class_name in inferred_layout.element_class_id_map.items()
Expand All @@ -92,7 +92,7 @@ def _inferred_is_elementtype(
return inferred_is_etypes


def _inferred_is_text(inferred_layout: LayoutElements) -> np.ndarry:
def _inferred_is_text(inferred_layout: LayoutElements) -> np.ndarray:
"""return a boolean array masking for each element if it is non-image type (True) or image like
type (False); image types are ElementType.FIGURE/IMAGE/PAGE_BREAK/TABLE"""
return ~_inferred_is_elementtype(
Expand Down