Fixed embeddings to doc-embedding mapper¶
Path | pimlico.modules.embeddings.mappers.fixed |
Executable | yes |
Use trained fixed word embeddings to map words to their embeddings. Does nothing with OOVs, which we don’t have any way to map.
First train or load embeddings using another module. Then use this module to produce a doc-embeddings mapper.
This module does not support Python 2, so can only be used when Pimlico is being run under Python 3
Inputs¶
Name | Type(s) |
---|---|
embeddings | embeddings |
Outputs¶
Name | Type(s) |
---|---|
mapper | fixed_embeddings_doc_embeddings_mapper |
Example config¶
This is an example of how this module can be used in a pipeline config file.
[my_fixed_embeddings_doc_mapper_module]
type=pimlico.modules.embeddings.mappers.fixed
input_embeddings=module_a.some_output