edsnlp.pipes.trainable.layers.text_cnn
TextCnn [source]
Bases: Module
Parameters
| PARAMETER | DESCRIPTION |
|---|---|
input_size | Size of the input embeddings TYPE: |
output_size | Size of the output embeddings Defaults to the TYPE: |
out_channels | Number of channels TYPE: |
kernel_sizes | Window size of each kernel TYPE: |
activation | Activation function to use TYPE: |
residual | Whether to use residual connections TYPE: |
normalize | Whether to normalize before or after the residual connection TYPE: |