mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-08-12 10:49:28 +00:00

Summary * Updates "fast" PDF output element ordering to be consistent across Python versions by using the X,Y coordinates of elements extracted * Added PDFs ingest tests with fast strategy with new script ./test_unstructured_ingest/test-ingest-pdf-fast-reprocess.sh Updated ingest tests procedure: * Processing files with hi_res strategy, and preserve downloads to repo files-ingest-download/<ingest_test_name> * Reprocessing all PDFs with fast strategy from local file files-ingest-download, the partition outputs are stored at expected-structured-output/pdf-fast-reprocess/<ingest_test_name> Test * Reproduce tests with ./scripts/ingest-test-fixtures-update.sh , should expect no update. Also don't need any secret tokens since relevant tests won't produce PDFs.
24 lines
988 B
Bash
Executable File
24 lines
988 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eux -o pipefail
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd "$SCRIPT_DIR"/.. || exit 1
|
|
|
|
# NOTE(crag): sets number of tesseract threads to 1 which may help with more reproducible outputs
|
|
export OMP_THREAD_LIMIT=1
|
|
|
|
./test_unstructured_ingest/test-ingest-s3.sh
|
|
./test_unstructured_ingest/test-ingest-azure.sh
|
|
./test_unstructured_ingest/test-ingest-discord.sh
|
|
./test_unstructured_ingest/test-ingest-github.sh
|
|
./test_unstructured_ingest/test-ingest-gitlab.sh
|
|
./test_unstructured_ingest/test-ingest-wikipedia.sh
|
|
./test_unstructured_ingest/test-ingest-biomed-api.sh
|
|
./test_unstructured_ingest/test-ingest-biomed-path.sh
|
|
./test_unstructured_ingest/test-ingest-local.sh
|
|
./test_unstructured_ingest/test-ingest-slack.sh
|
|
./test_unstructured_ingest/test-ingest-against-api.sh
|
|
# NOTE(yuming): The following test should be put after any tests with --preserve-downloads option
|
|
./test_unstructured_ingest/test-ingest-pdf-fast-reprocess.sh
|