Skip to content

Commit 321655a

Browse files
authored
Update base ExternalEncoder
The current method signature is not a class method - all derivatives are instance methods.
1 parent 61293a2 commit 321655a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

turftopic/encoders/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ExternalEncoder(ABC):
88
"""Base class for external encoder models."""
99

1010
@abstractmethod
11-
def encode(sentences: Iterable[str]) -> np.ndarray:
11+
def encode(self, sentences: Iterable[str]) -> np.ndarray:
1212
"""Encodes sentences into an embedding matrix.
1313
1414
Parameters

0 commit comments

Comments
 (0)