Skip to content

Commit

Permalink
Services: updated medcat service model dl script.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Jul 2, 2024
1 parent 3691202 commit e66f43a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ if [[ ! -f "$MODEL_CDB" || ! -f "$MODEL_VCB" ]]; then
fi

# download the model as described in the MedCAT repo
curl https://medcat.rosalind.kcl.ac.uk/media/vocab.dat > $MODEL_VCB
curl https://medcat.rosalind.kcl.ac.uk/media/cdb-medmen-v1_2.dat > $MODEL_CDB
curl https://cogstack-medcat-example-models.s3.eu-west-2.amazonaws.com/medcat-example-models/vocab.dat > $MODEL_VCB
curl https://cogstack-medcat-example-models.s3.eu-west-2.amazonaws.com/medcat-example-models/cdb-medmen-v1.dat > $MODEL_CDB
else
echo "MedMentions model already present -- skipping download"
fi

if [[ ! -d "$MODEL_META" ]]; then
echo "Downloading meta model: status"
curl https://medcat.rosalind.kcl.ac.uk/media/mc_status.zip > $MEDMEN_DIR/mc_status.zip && \
curl https://cogstack-medcat-example-models.s3.eu-west-2.amazonaws.com/medcat-example-models/mc_status.zip > $MEDMEN_DIR/mc_status.zip && \
(cd $MEDMEN_DIR && unzip mc_status.zip) && \
rm $MEDMEN_DIR/mc_status.zip
else
Expand Down

0 comments on commit e66f43a

Please sign in to comment.