Skip to content

Commit

Permalink
don't use deprecated BPEmbSerializable
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Fuchs committed Sep 11, 2023
1 parent c31ab09 commit f1a4d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flair/embeddings/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,7 @@ def __init__(
), "Need to specify model_file_path and embedding_file_path if no language is given in BytePairEmbeddings(...)"
dim = None # type: ignore[assignment]

self.embedder = BPEmbSerializable(
self.embedder = BPEmb(
lang=language,
vs=syllables,
dim=dim,
Expand Down

0 comments on commit f1a4d96

Please sign in to comment.