-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrrun-l-dependency-parse-import-batch.sh
executable file
·49 lines (40 loc) · 2.14 KB
/
rrun-l-dependency-parse-import-batch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
source ./rrun.env.sh
# This script imports dependency parses that reside in a google bucket in CoNLL-U format into Datastore.
# The dependency parses are consolidated into one or more files in the google bucket. This pipeline separates the parses for
# individual documents and stores them as individual documents in Datastore.
SCRIPT=./scripts/pipelines/import/run_dependency_parse_import.sh
OVERWRITE_FLAG=YES
SENTENCE_PIPELINE_VERSION="0.2.0"
BASE_DP_FILE_PATH="${WORK_BUCKET}/output/dependency_parses"
JAR_VERSION="0.2.1"
# COLLECTION=PUBMED_SUB_30
COLLECTION=TEST
$SCRIPT $PROJECT_ID $COLLECTION $BASE_DP_FILE_PATH $OVERWRITE_FLAG ${STAGE_LOCATION} ${TEMP_LOCATION} ${JAR_VERSION} &> "./logs/dp-import-${COLLECTION}.log"
# for INDEX in $(seq 0 4 $MAX_SUBSET_INDEX)
# do
# ind=$(($INDEX + 0))
# if (( ind <= $MAX_SUBSET_INDEX)); then
# echo "Starting abbreviation detection pipeline... ${ind} $(date)"
# $SCRIPT $SOURCE_PATH $WORKER_PATH $PIPELINE_KEY $PROJECT_ID ${SUBSET_PREFIX}${ind} ${STAGE_LOCATION} ${TEMP_LOCATION} &> ./logs/abbreviation-detect-${ind}.log &
# sleep 120
# fi
# ind=$(($INDEX + 1))
# if (( ind <= $MAX_SUBSET_INDEX)); then
# echo "Starting abbreviation detection pipeline... ${ind} $(date)"
# $SCRIPT $SOURCE_PATH $WORKER_PATH $PIPELINE_KEY $PROJECT_ID ${SUBSET_PREFIX}${ind} ${STAGE_LOCATION} ${TEMP_LOCATION} &> ./logs/abbreviation-detect-${ind}.log &
# sleep 120
# fi
# ind=$(($INDEX + 2))
# if (( ind <= $MAX_SUBSET_INDEX)); then
# echo "Starting abbreviation detection pipeline... ${ind} $(date)"
# $SCRIPT $SOURCE_PATH $WORKER_PATH $PIPELINE_KEY $PROJECT_ID ${SUBSET_PREFIX}${ind} ${STAGE_LOCATION} ${TEMP_LOCATION} &> ./logs/abbreviation-detect-${ind}.log &
# sleep 120
# fi
# ind=$(($INDEX + 3))
# if (( ind <= $MAX_SUBSET_INDEX)); then
# echo "Starting abbreviation detection pipeline... ${ind} $(date)"
# $SCRIPT $SOURCE_PATH $WORKER_PATH $PIPELINE_KEY $PROJECT_ID ${SUBSET_PREFIX}${ind} ${STAGE_LOCATION} ${TEMP_LOCATION} &> ./logs/abbreviation-detect-${ind}.log &
# fi
# wait
# done