From b6962158ecce0fc2ba81481108e47e376b9b51d2 Mon Sep 17 00:00:00 2001 From: Benedikt Fuchs Date: Fri, 12 Jul 2024 16:40:42 +0200 Subject: [PATCH] make bpeemb optional --- flair/embeddings/token.py | 1 - 1 file changed, 1 deletion(-) diff --git a/flair/embeddings/token.py b/flair/embeddings/token.py index 6156258f18..18abeccb28 100644 --- a/flair/embeddings/token.py +++ b/flair/embeddings/token.py @@ -1473,7 +1473,6 @@ def _add_embeddings_internal(self, sentences: List[Sentence]) -> List[Sentence]: ids = [ids[0], ids[-1]] word_indices.append(ids) - breakpoint() index_tensor = torch.tensor(word_indices, dtype=torch.long, device=self.device) embeddings = self.embedding(index_tensor) embeddings = embeddings.reshape((-1, self.embedding_length))