API References¶
Similarity Model¶
Main class which contains encoder models with the head layer. |
Encoders¶
Base class for encoder abstraction |
|
Allows use alternative embeddings based on input data. |
|
Creates a fasttext encoder, which generates vector for a list of tokens based in given fasttext model |
Head Layers¶
Returns input embeddings without any modification |
|
Disables or amplifies some components of input embedding. |
|
A torch.nn.Sequential-like head layer that you can freely add any layers. |
|
Unites the idea of gated head and residual connections. |
|
Provides a concatenation of the independent softmax embeddings groups as a head layer |
|
Stacks any number of projection layers with specified output sizes. |
|
Implements narrow-wide-narrow architecture. |