2023-02-28 09:25:11 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Processes the Unstructured-IO/unstructured repository
|
|
|
|
# through Unstructured's library in 2 processes.
|
|
|
|
|
|
|
|
# Structured outputs are stored in wikipedia-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
|
|
|
wikipedia \
|
|
|
|
--page-title "Open Source Software" \
|
2023-09-11 11:40:56 -04:00
|
|
|
--output-dir wikipedia-ingest-output \
|
2023-02-28 09:25:11 +01:00
|
|
|
--num-processes 2 \
|
|
|
|
--verbose
|
|
|
|
|
|
|
|
# Alternatively, you can call it using:
|
2023-07-31 13:20:10 -04:00
|
|
|
# unstructured-ingest wikipedia --page-title "..." ...
|