Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 2.29 KB

pimlico.modules.input.embeddings.fasttext.rst

File metadata and controls

63 lines (43 loc) · 2.29 KB

FastText embedding reader (bin)

Path pimlico.modules.input.embeddings.fasttext
Executable yes

Reads in embeddings from the FastText format, storing them in the format used internally in Pimlico for embeddings.

Loads the fastText .bin format using the fasttext library itself. Outputs both a fixed set of embeddings in Pimlico's standard format and a special fastText datatype that provides access to more features of the model.

Inputs

No inputs

Outputs

Name Type(s)
embeddings embeddings <pimlico.datatypes.embeddings.Embeddings>
model fasttext_embeddings <pimlico.datatypes.embeddings.FastTextEmbeddings>

Options

Name Description Type
path (required) Path to the FastText embedding file string

Example config

This is an example of how this module can be used in a pipeline config file.

[my_fasttext_bin_embedding_reader_module]
type=pimlico.modules.input.embeddings.fasttext
path=value

Test pipelines

This module is used by the following test pipelines <test-pipelines>. They are a further source of examples of the module's usage.

  • test-config-input-fasttext.conf