Text CNN[source]
The eds.text_cnn
component is a simple 1D convolutional network to contextualize word embeddings (as computed by the embedding
component passed as argument).
To be memory efficient when handling batches of variable-length sequences, this module employs sequence packing, while taking care of avoiding contamination between the different docs.
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: |