Skip to content

Commit ee7660a

Browse files
chg: Fix incorrect config and improve error message
1 parent 4188c68 commit ee7660a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

deep_reference_parser/configs/2019.12.0.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ policy_valid = data/2019.12.0_valid.tsv
1414
s3_slug = https://datalabs-public.s3.eu-west-2.amazonaws.com/deep_reference_parser/
1515

1616
[build]
17-
output_path = models/2020.2.0/
17+
output_path = models/2019.12.0/
1818
output = crf
1919
word_embeddings = embeddings/2020.1.1-wellcome-embeddings-300.txt
2020
pretrained_embedding = 0

deep_reference_parser/predict.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, config_file):
5151
download_model_artefact(artefact, S3_SLUG)
5252
msg.good(f"Found {artefact}")
5353
except:
54-
msg.fail(f"Could not download {artefact}")
54+
msg.fail(f"Could not download {S3_SLUG}{artefact}")
5555
logger.exception()
5656

5757
# Check on word embedding and download if not exists
@@ -63,7 +63,7 @@ def __init__(self, config_file):
6363
download_model_artefact(WORD_EMBEDDINGS, S3_SLUG)
6464
msg.good(f"Found {WORD_EMBEDDINGS}")
6565
except:
66-
msg.fail(f"Could not download {WORD_EMBEDDINGS}")
66+
msg.fail(f"Could not download {S3_SLUG}{WORD_EMBEDDINGS}")
6767
logger.exception()
6868

6969

0 commit comments

Comments
 (0)