FastText embedding reader using Gensim¶
Path | pimlico.modules.input.embeddings.fasttext_gensim |
Executable | yes |
Reads in embeddings from the FastText format, storing them in the format used internally in Pimlico for embeddings. This version uses Gensim’s implementation of the format reader, so depends on Gensim.
Can be used, for example, to read the pre-trained embeddings offered by Facebook AI.
Reads only the binary format (.bin
), not the text format (.vec
).
See also
pimlico.modules.input.embeddings.fasttext
:- An alternative reader that does not use Gensim. It permits (only) reading the text format.
Inputs¶
No inputs
Outputs¶
Name | Type(s) |
---|---|
embeddings | Embeddings |
Options¶
Name | Description | Type |
---|---|---|
path | (required) Path to the FastText embedding file (.bin) | string |