bug: add main function to ingest/evaluate.py (#2583)

Conflicted on previous two merge. Add the main function back.
This commit is contained in:
Klaijan 2024-02-26 12:01:34 +07:00 committed by GitHub
parent 5cb6504d5a
commit 8f7853894e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@
### Features ### Features
* **Header and footer detection for fast strategy.** `partition_pdf` with `fast` strategy now * **Header and footer detection for fast strategy** `partition_pdf` with `fast` strategy now
detects elements that are in the top or bottom 5 percent of the page as headers and footers. detects elements that are in the top or bottom 5 percent of the page as headers and footers.
* **Add parent_element to overlapping case output** Adds parent_element to the output for `identify_overlapping_or_nesting_case` and `catch_overlapping_and_nested_bboxes` functions. * **Add parent_element to overlapping case output** Adds parent_element to the output for `identify_overlapping_or_nesting_case` and `catch_overlapping_and_nested_bboxes` functions.
* **Add table structure evaluation** Adds a new function to evaluate the structure of a table and return a metric that represents the quality of the table structure. This function is used to evaluate the quality of the table structure and the table contents. * **Add table structure evaluation** Adds a new function to evaluate the structure of a table and return a metric that represents the quality of the table structure. This function is used to evaluate the quality of the table structure and the table contents.

View File

@ -207,3 +207,7 @@ def measure_table_structure_accuracy_command(
return measure_table_structure_accuracy( return measure_table_structure_accuracy(
output_dir, source_dir, output_list, source_list, export_dir, visualize, cutoff output_dir, source_dir, output_list, source_list, export_dir, visualize, cutoff
) )
if __name__ == "__main__":
main()