dgs.models.embedding_generator.register_embedding_generator

dgs.models.embedding_generator.register_embedding_generator(name: str, new_eg: Type[EmbeddingGeneratorModule]) None[source]

Register a new embedding generator in EMBEDDING_GENERATORS, to be able to use it from configuration files.