Skip to content

Commit

Permalink
drop unused field needs_subject_index
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Aug 10, 2022
1 parent f09fbba commit ce48891
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion annif/backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class AnnifBackend(metaclass=abc.ABCMeta):
non-implemented methods should be overridden in subclasses."""

name = None
needs_subject_index = False

DEFAULT_PARAMETERS = {'limit': 100}

Expand Down
1 change: 0 additions & 1 deletion annif/backend/fasttext.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class FastTextBackend(mixins.ChunkingBackend, backend.AnnifBackend):
"""fastText backend for Annif"""

name = "fasttext"
needs_subject_index = True

FASTTEXT_PARAMS = {
'lr': float,
Expand Down
1 change: 0 additions & 1 deletion annif/backend/mllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def _postprocess(self, study):
class MLLMBackend(hyperopt.AnnifHyperoptBackend):
"""Maui-like Lexical Matching backend for Annif"""
name = "mllm"
needs_subject_index = True

# defaults for unitialized instances
_model = None
Expand Down
1 change: 0 additions & 1 deletion annif/backend/omikuji.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
class OmikujiBackend(mixins.TfidfVectorizerMixin, backend.AnnifBackend):
"""Omikuji based backend for Annif"""
name = "omikuji"
needs_subject_index = True

# defaults for uninitialized instances
_model = None
Expand Down
1 change: 0 additions & 1 deletion annif/backend/stwfsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
class StwfsaBackend(backend.AnnifBackend):

name = "stwfsa"
needs_subject_index = True

STWFSA_PARAMETERS = {
_KEY_CONCEPT_TYPE_URI: str,
Expand Down
1 change: 0 additions & 1 deletion annif/backend/svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
class SVCBackend(mixins.TfidfVectorizerMixin, backend.AnnifBackend):
"""Support vector classifier backend for Annif"""
name = "svc"
needs_subject_index = True

# defaults for uninitialized instances
_model = None
Expand Down
1 change: 0 additions & 1 deletion annif/backend/tfidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def read(self):
class TFIDFBackend(mixins.TfidfVectorizerMixin, backend.AnnifBackend):
"""TF-IDF vector space similarity based backend for Annif"""
name = "tfidf"
needs_subject_index = True

# defaults for uninitialized instances
_index = None
Expand Down
1 change: 0 additions & 1 deletion annif/backend/yake.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
class YakeBackend(backend.AnnifBackend):
"""Yake based backend for Annif"""
name = "yake"
needs_subject_index = False

# defaults for uninitialized instances
_index = None
Expand Down

0 comments on commit ce48891

Please sign in to comment.