BSeqCNNRepresentation.ConfigΒΆ

Component: BSeqCNNRepresentation

class BSeqCNNRepresentation.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
cnn: CNNParams = CNNParams()
fwd_bwd_context_len: int = 5
surrounding_context_len: int = 2

Default JSON

{
    "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
    },
    "fwd_bwd_context_len": 5,
    "surrounding_context_len": 2
}