2023-06-21 15:14:50 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-07-31 13:20:10 -04:00
|
|
|
# Processes several files in a nested folder structure from gs://utic-test-ingest-fixtures-public/
|
2023-06-21 15:14:50 -07:00
|
|
|
# through Unstructured's library in 2 processes.
|
|
|
|
|
|
|
|
# Structured outputs are stored in gcs-output/
|
|
|
|
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
cd "$SCRIPT_DIR"/../../.. || exit 1
|
|
|
|
|
|
|
|
PYTHONPATH=. ./unstructured/ingest/main.py \
|
2023-07-31 13:20:10 -04:00
|
|
|
gcs \
|
2023-06-21 15:14:50 -07:00
|
|
|
--remote-url gs://utic-test-ingest-fixtures-public/ \
|
2023-09-11 11:40:56 -04:00
|
|
|
--output-dir gcs-output \
|
2023-06-21 15:14:50 -07:00
|
|
|
--num-processes 2 \
|
|
|
|
--recursive \
|
2023-07-31 13:20:10 -04:00
|
|
|
--verbose
|