mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-17 14:05:54 +00:00
19 lines
590 B
Bash
19 lines
590 B
Bash
![]() |
#!/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 \
|
||
|
--wikipedia-page-title "Open Source Software" \
|
||
|
--structured-output-dir wikipedia-ingest-output \
|
||
|
--num-processes 2 \
|
||
|
--verbose
|
||
|
|
||
|
# Alternatively, you can call it using:
|
||
|
# unstructured-ingest --wikipedia-page-title "..." ...
|