Skip to content

Commit

Permalink
undo commit for fastembed
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed Feb 27, 2024
1 parent e7905c2 commit 91b1edf
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,5 @@ def encode_post(self, embedding: np.ndarray) -> EmbeddingReturnType:
def tokenize_lengths(self, sentences: List[str]) -> List[int]:
tks = self._infinity_tokenizer.encode_batch(
sentences,
truncation=True,
)
return [len(t.tokens) for t in tks]

0 comments on commit 91b1edf

Please sign in to comment.