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 Jul 31, 2023
1 parent 3138782 commit 077a7d3
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 077a7d3

Please sign in to comment.