Text CNN
The eds.text_cnn
component is a simple 1D convolutional network to contextualize word embeddings (as computed by the embedding
component passed as argument).
Parameters
PARAMETER | DESCRIPTION |
---|---|
nlp | The pipeline object TYPE: |
name | The name of the component TYPE: |
embedding | Embedding module to apply to the input 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: |