Skip to content

Commit

Permalink
prevent fasttext embeddings to be stored separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Fuchs committed Aug 7, 2023
1 parent 419f13a commit fe1c940
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 fe1c940

Please sign in to comment.