We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1bf00d commit 76985bdCopy full SHA for 76985bd
model2vec/model.py
@@ -331,7 +331,7 @@ def encode_as_sequence(
331
return out_array[0]
332
return out_array
333
334
- def _encode_batch_as_sequence(self, sentences: list[str], max_length: int | None) -> list[np.ndarray]:
+ def _encode_batch_as_sequence(self, sentences: Sequence[str], max_length: int | None) -> list[np.ndarray]:
335
"""Encode a batch of sentences as a sequence."""
336
ids = self.tokenize(sentences=sentences, max_length=max_length)
337
out: list[np.ndarray] = []
0 commit comments