Skip to content

Commit

Permalink
make bpeemb optional
Browse files Browse the repository at this point in the history
  • Loading branch information
helpmefindaname committed Jul 12, 2024
1 parent 1ed7690 commit c17dd2f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flair/embeddings/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c17dd2f

Please sign in to comment.