CharacterEmbedding.ConfigΒΆ

Component: CharacterEmbedding

class CharacterEmbedding.Config

Bases: ConfigBase

All Attributes (including base classes)

embed_dim: int = 100
sparse: bool = False
cnn: CNNParams = CNNParams()
export_input_names: List[str] = ['char_vals']
vocab_from_train_data: bool = True

Default JSON

{
    "embed_dim": 100,
    "sparse": false,
    "cnn": {
        "kernel_num": 100,
        "kernel_sizes": [
            3,
            4
        ]
    },
    "export_input_names": [
        "char_vals"
    ],
    "vocab_from_train_data": true
}