SharedCNNRepresentation.ConfigΒΆ

Component: SharedCNNRepresentation

class SharedCNNRepresentation.Config[source]

Bases: RepresentationBase.Config

All Attributes (including base classes)

load_path: Optional[str] = None
save_path: Optional[str] = None
freeze: bool = False
shared_module_key: Optional[str] = None
word_representation: Union[BSeqCNNRepresentation.Config, DeepCNNRepresentation.Config] = DeepCNNRepresentation.Config()
pooling_type: PoolingType = <PoolingType.MAX: 'max'>

Default JSON

{
    "load_path": null,
    "save_path": null,
    "freeze": false,
    "shared_module_key": null,
    "word_representation": {
        "DeepCNNRepresentation": {
            "load_path": null,
            "save_path": null,
            "freeze": false,
            "shared_module_key": null,
            "cnn": {
                "kernel_num": 100,
                "kernel_sizes": [
                    3,
                    4
                ],
                "weight_norm": false,
                "dilated": false,
                "causal": false
            },
            "dropout": 0.3,
            "activation": "glu",
            "separable": false,
            "bottleneck": 0,
            "pooling_type": "none"
        }
    },
    "pooling_type": "max"
}