Skip to content

Commit

Permalink
Added try/except on load models
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Martinez <[email protected]>
  • Loading branch information
marmg committed Sep 4, 2023
1 parent 7c1bd58 commit 5ab08ac
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions zshot/utils/download_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@


def load_all():
load_few_rel_zs()
load_medmentions_zs()
load_ontonotes_zs()
try:
load_few_rel_zs()
except ConnectionError:
pass
try:
load_medmentions_zs()
except ConnectionError:
pass
try:
load_ontonotes_zs()
except ConnectionError:
pass
try:
LinkerSMXM().load_models()
except RuntimeError:
Expand Down

0 comments on commit 5ab08ac

Please sign in to comment.