mirror of
https://github.com/JHUAPL/PINE.git
synced 2026-01-09 14:38:06 -05:00
This includes two major features: 1. HTML view of CDA documents 2. simpletransformers-based NLP pipeline
23 lines
529 B
Bash
Executable File
23 lines
529 B
Bash
Executable File
#!/bin/bash
|
|
# (C) 2019 The Johns Hopkins University Applied Physics Laboratory LLC.
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
if [[ -n ${DATA_DIR} ]]; then
|
|
export AL_ROOT_DIR=${DATA_DIR}
|
|
mkdir -p ${DATA_DIR}/models ${DATA_DIR}/tmp
|
|
fi
|
|
|
|
set -x
|
|
|
|
pipenv run python3 -m nltk.downloader punkt
|
|
|
|
PIDS=""
|
|
for SERVICE in simpletransformers opennlp corenlp spacy; do
|
|
AL_PIPELINE=${SERVICE} pipenv run python3 -m pine.pipelines.run_service &
|
|
PIDS="${PIDS} $!"
|
|
done
|
|
|
|
for PID in ${PIDS}; do
|
|
wait ${PID}
|
|
done
|