SubBoxCNNPooler
One dimension CNN encoding multi-kernel layer.
Input embeddings are convoluted using linear kernels each parametrized with
a (window) size of kernel_size[kernel_i]
The output of the kernels are concatenated together, max-pooled and finally
projected to a size of output_size
.
Parameters
PARAMETER | DESCRIPTION |
---|---|
pipeline |
Pipeline instance
TYPE:
|
name |
Name of the component
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:
|