Files
PINE/pipelines/dev_run.sh
Laura Glendenning ca3266f530 Updates from latest development branch.
This includes two major features:
1. HTML view of CDA documents
2. simpletransformers-based NLP pipeline
2022-02-04 18:05:57 -05:00

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