2023-03-11 00:43:40 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-07-31 13:20:10 -04:00
|
|
|
# Processes all the files from abfs://container1/ in azureunstructured1 account,
|
|
|
|
# using the `unstructured` library.
|
2023-03-11 00:43:40 +01:00
|
|
|
|
|
|
|
# Structured outputs are stored in azure-ingest-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
|
|
|
azure \
|
2023-03-11 00:43:40 +01:00
|
|
|
--remote-url abfs://container1/ \
|
2023-07-31 13:20:10 -04:00
|
|
|
--account-name azureunstructured1 \
|
2023-09-11 11:40:56 -04:00
|
|
|
--output-dir azure-ingest-output \
|
2023-03-11 00:43:40 +01:00
|
|
|
--num-processes 2
|