Skip to content

Commit

Permalink
Added GLiNER to download_models
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Martínez Galindo <marcosmartinezgalindo@Marcoss-MacBook-Pro.local>
  • Loading branch information
Marcos Martínez Galindo authored and Marcos Martínez Galindo committed Aug 15, 2024
1 parent 6af861e commit 49e4b96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zshot/utils/download_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from zshot.evaluation.dataset import load_few_rel_zs, load_medmentions_zs, load_ontonotes_zs
from zshot.linker import LinkerRegen, LinkerSMXM, LinkerTARS
from zshot.linker import LinkerRegen, LinkerSMXM, LinkerTARS, LinkerGLINER
from zshot.mentions_extractor import MentionsExtractorFlair
from zshot.mentions_extractor.utils import ExtractorType
from zshot.relation_extractor.relation_extractor_zsrc import RelationsExtractorZSRC
Expand Down Expand Up @@ -30,6 +30,10 @@ def load_all():
LinkerTARS().load_models()
except RuntimeError:
pass
try:
LinkerGLINER().load_models()
except RuntimeError:
pass
try:
RelationsExtractorZSRC().load_models()
except RuntimeError:
Expand Down

0 comments on commit 49e4b96

Please sign in to comment.