Skip to content

Commit

Permalink
Ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alanakbik committed Apr 5, 2024
1 parent e3634ea commit 189c6e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flair/embeddings/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __init__(

self.__embedding_length: int = precomputed_word_embeddings.vector_size

vectors = np.row_stack(
vectors = np.vstack(
(
precomputed_word_embeddings.vectors,
np.zeros(self.__embedding_length, dtype="float"),
Expand Down Expand Up @@ -399,7 +399,7 @@ def __setstate__(self, state: Dict[str, Any]):
state.setdefault("field", None)
if "precomputed_word_embeddings" in state:
precomputed_word_embeddings: KeyedVectors = state.pop("precomputed_word_embeddings")
vectors = np.row_stack(
vectors = np.vstack(
(
precomputed_word_embeddings.vectors,
np.zeros(precomputed_word_embeddings.vector_size, dtype="float"),
Expand Down

0 comments on commit 189c6e2

Please sign in to comment.