Skip to content

Commit

Permalink
Merge pull request #3293 from flairNLP/3291-bug-fasttext-embeddings-d…
Browse files Browse the repository at this point in the history
…ont-work

prevent fasttext embeddings to be stored separately
  • Loading branch information
alanakbik authored Aug 8, 2023
2 parents f54e6d6 + f3c93f5 commit e7a985b
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 @@ -1086,7 +1086,7 @@ def to_params(self):
with tempfile.TemporaryDirectory() as temp_dir:
temp_path = Path(temp_dir)
out_path = temp_path / "fasttext.model"
self.precomputed_word_embeddings.save(str(out_path))
self.precomputed_word_embeddings.save(str(out_path), separately=[])
return {"name": self.name, "field": self.field, "fasttext_binary": out_path.read_bytes()}


Expand Down

0 comments on commit e7a985b

Please sign in to comment.