unstructured
Feat: Native hierarchies for docx element types
#1505
Merged

Feat: Native hierarchies for docx element types #1505

newelh merged 93 commits into main from newelh/hierarchy-fast/docx
newelh
newelh Feat: Introduce a naive hierarchy to unstructured elements
886304de
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
4b1f2319
newelh Fix: Move hierarchy postprocessor to
eea4fb6e
newelh Chore: cleanup
f5f9305f
newelh Chore: update changelog
e3572133
newelh Chore: tidy
57665c4d
newelh chore: tidy
1b4331f8
newelh Chore: type hints
faeda5da
newelh Chore: Version bump
970ba9d4
newelh Fix: More safely access category attribute
c6933176
newelh feat: Nested hierarchy support and unit tests
0f62a667
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
3a9b086e
newelh chore: tidy & check
bbc4e4cb
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
4d9372b3
newelh Fix: move set hierarchy to elements, support category depth
e24c9129
newelh Feat: support parent_ids for html tags
c0af2495
newelh Chore: Tidy & Check
75db9b16
newelh Chore: move hierachy check method to common
6939d3ea
newelh tests: update email tests to not require a
61c450b0
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
d405e81f
newelh Chore: Tidy
4b80816a
newelh Fix: regression in hierarchy algo,
1ed92ffa
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
eef8dca2
newelh Feat: Add table support to ruleset
8b6c2d58
newelh Chore: tidy
ff6878c2
scanny docs: small docs corrections
dd9c48da
scanny config: Black config requires pyproject.toml
32941b6e
newelh Test: Ignore parent_ids in ingest tests
62b5af36
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
adbca9e2
newelh chore: sync version
c1c262cc
newelh Test: Remove parent id's from more ingest tests
0144809f
newelh Fix: Ignore parent_id and category_depth when
1fd02374
newelh Fix: Ignore parent_id & category depth for
d2879aa5
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
a6056312
newelh Chore: update version
3c28d5a8
newelh Merge branch 'main' into newelh/hierarchy-fast/post-processor
aed5ae76
newelh Chore: tidy
c5519808
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
4e44cf51
newelh Chore: bump version
d418b681
scanny typing: add type stubs for python-docx/pptx
7598d8eb
scanny typing: docx.py type-checks clean on strict
ab66ead0
scanny rfctr: move convert_and_partition_docx() up
a9e7f796
scanny rfctr: mv Paragraph.runs monkey-patch to bottom
0e9521e9
scanny rfctr: add initial _DocxPartitioner
3b6527c9
scanny rfctr: replace partition_docx implementation ...
da57c46b
scanny rfctr: move parameters to instance variables
0b78b43d
scanny rfctr: add _DocxPartitioner._iter_document_elements()
807e57ff
scanny rfctr: extract _DocxPartitioner._document
b52c42af
scanny rfctr: incorporate ._element_contains_pagebreak()
1fd6778e
scanny rfctr: extract ._document_contains_pagebreaks
513a0b7d
scanny rfctr: extract ._last_modified (date)
c81e9cb6
scanny rfctr: extract ._page_number, ._increment_page_number
00911ff7
scanny rfctr: extract ._is_list_item()
9d23f008
scanny rfctr: incorporate ._iter_paragraph_emphasis()
44704caf
scanny rfctr: extract ._paragraph_emphasis
d6a7285a
scanny rfctr: incorporate ._style_based_element_type()
964b544d
scanny rfctr: incorporate ._parse_paragraph_text_for_element_type()
8f73d300
scanny rfctr: extract ._paragraph_metadata()
fef52b39
scanny rfctr: extract ._iter_maybe_paragraph_element()
8ce16ecd
scanny rfctr: extract ._table_emphasis()
ad5b5aa6
scanny rfctr: extract ._iter_table_element()
9c6f7adf
scanny docx: add _SectBlockIterator
6ebee1b4
scanny rfctr: install _SectBlockIterator
617ac426
scanny docx: add ._iter_section_page_breaks()
6cc92497
scanny rfctr: extract ._iter_section_headers()
5b0a5c04
scanny rfctr: extract ._iter_section_footers()
28e67340
scanny rfctr: extract ._iter_maybe_paragraph_page_breaks()
bff9b62f
scanny rfctr: improve convert_and_partition_docx()
35b564c2
scanny spike: refactor docx partitioner
3d5d93b1
newelh Merge branch 'main' into newelh/hierarchy-fast/post-processor
b7c55356
newelh Merge branch 'scanny/spike' of https://github.com/Unstructured-IO/uns…
5d56afc8
newelh Feat: Category depth for docx elements
80ab3b4d
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
acbe0868
newelh Chore: add note
664b9ff6
newelh Chore: tidy
63ed9d94
newelh Chore: remove print statements
21100726
newelh Feat: Add ilvl xpath check for determining list/bullet item depth
96eb509a
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
88bd841c
newelh Chore: remove print statements
f6c093c8
newelh Chore: changelog
d6339562
newelh Chore: revert pptx changes to match main
e0c3136e
newelh Chore: tidy
c30b9753
newelh Test: Add unit tests for docx native hierarchy and additional example…
2ea960cf
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
ec1eef78
newelh Chore: update changelog
753af88c
newelh Chore: Update document to have more narrative type text
7a9f3ffb
newelh Merge branch 'main' of https://github.com/Unstructured-IO/unstructure…
c0a05fa1
newelh newelh marked this pull request as ready for review 2 years ago
newelh newelh requested a review from scanny scanny 2 years ago
newelh Chore: tidy
eff78e44
scanny
scanny approved these changes on 2023-09-26
newelh Chore: tidy tests, make more maintainable/readable
b2c2bf1a
newelh Chore: tidy
df9f5b78
newelh Merge branch 'main' into newelh/hierarchy-fast/docx
1395e627
newelh Chore: tidy
c5de28e1
newelh Chore: version bump
8f2d968d
newelh newelh merged 55315cf6 into main 2 years ago
newelh newelh deleted the newelh/hierarchy-fast/docx branch 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone