Skip to content

Commit

Permalink
✅ 📝 Updated flair version
Browse files Browse the repository at this point in the history
  • Loading branch information
marmg committed Oct 31, 2023
1 parent 08f47f3 commit cf8fa81
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 263 deletions.
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pytest>=7.0
pytest-cov>=3.0.0
setuptools>=65.5.1
flair>=0.11.3
flair>=0.13
flake8>=4.0.1
coverage>=6.4.1
pydantic==1.9.2
Expand Down
2 changes: 1 addition & 1 deletion zshot/linker/linker_tars.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, default_entities: Optional[str] = "conll-short"):
super().__init__()
if not pkgutil.find_loader("flair"):
raise Exception("Flair module not installed. You need to install Flair for using this class."
"Install it with: pip install flair==0.11")
"Install it with: pip install flair>pip install =0.13")

self.is_end2end = True
self.default_entities = default_entities
Expand Down
2 changes: 1 addition & 1 deletion zshot/mentions_extractor/mentions_extractor_flair.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, extractor_type: Optional[ExtractorType] = ExtractorType.NER):
"""
if not pkgutil.find_loader("flair"):
raise Exception("Flair module not installed. You need to install Flair for using this class."
"Install it with: pip install flair==0.11")
"Install it with: pip install flair>=0.13")

super(MentionsExtractorFlair, self).__init__()

Expand Down
2 changes: 1 addition & 1 deletion zshot/mentions_extractor/mentions_extractor_tars.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, default_entities: Optional[str] = "conll-short"):
super().__init__()
if not pkgutil.find_loader("flair"):
raise Exception("Flair module not installed. You need to install Flair for using this class."
"Install it with: pip install flair==0.11")
"Install it with: pip install flair>=0.13")

self.is_end2end = True
self.default_entities = default_entities
Expand Down
259 changes: 0 additions & 259 deletions zshot/tests/README.md

This file was deleted.

0 comments on commit cf8fa81

Please sign in to comment.