Skip to content

Commit 2f8bfab

Browse files
committed
fix linter
1 parent 9c29f5e commit 2f8bfab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ir_axioms/modules/similarity.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,14 @@ def similarity(self, term1: str, term2: str) -> float:
190190

191191

192192
class MagnitudeTermSimilarityMixin(TermSimilarityMixin, ABC):
193-
embeddings_path: str = NotImplemented
193+
embeddings_path: str = None
194194

195195
@cached_property
196196
def _embeddings(self):
197197
url = 'https://files.webis.de/data-in-production/data-research/ir-axioms/wiki-news-300d-1M.magnitude' # noqa: E501
198198
if (
199199
not os.path.isfile(self.embeddings_path)
200+
and self.embeddings_path
200201
and self.embeddings_path.endswith('wiki-news-300d-1M.magnitude')
201202
):
202203
wget.download(url, out=self.embeddings_path)

0 commit comments

Comments
 (0)