-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove remaining table OCR logic in inference (#302)
### Summary Remove all OCR related code: * table OCR code -> require ocr tokens to pass in for table structure * parameter `extract_tables` -> moved to unst already, unst decide if extract or not and calling table model * function `interpret_table_block` -> this was a wrapper to call table in inference on block level, logic moved to unst * paddle ocr related code and readme instruction ### Test * shouldn't affect anything since its just remove a deprecated logic * added some test for coverage * CCT metrics compare (no change): before (main on core product): ``` metric average sample_sd population_sd count -------------------------------------------------- cct-accuracy 0.665 0.278 0.277 109 cct-%missing 0.094 0.176 0.176 109 ``` after (inference checked out to this branch): ``` metric average sample_sd population_sd count -------------------------------------------------- cct-accuracy 0.665 0.278 0.277 109 cct-%missing 0.094 0.176 0.176 109 ```
- Loading branch information
1 parent
d4785df
commit 4e5c4e6
Showing
15 changed files
with
585 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
test_unstructured_inference/inference/test_layout_element.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.