RNNGParser.ConfigΒΆ

Component: RNNGParser

class RNNGParser.Config[source]

Bases: ConfigBase

All Attributes (including base classes)

version: int = 0
lstm: BiLSTM.Config = BiLSTM.Config()
ablation: AblationParams = AblationParams()
constraints: RNNGConstraints = RNNGConstraints()
max_open_NT: int = 10
dropout: float = 0.1
compositional_type: CompositionalType = <CompositionalType.BLSTM: 'blstm'>

Default JSON

{
    "version": 0,
    "lstm": {
        "load_path": null,
        "save_path": null,
        "freeze": false,
        "shared_module_key": null,
        "dropout": 0.4,
        "lstm_dim": 32,
        "num_layers": 1,
        "bidirectional": true
    },
    "ablation": {
        "use_buffer": true,
        "use_stack": true,
        "use_action": true,
        "use_last_open_NT_feature": false
    },
    "constraints": {
        "intent_slot_nesting": true,
        "ignore_loss_for_unsupported": false,
        "no_slots_inside_unsupported": true
    },
    "max_open_NT": 10,
    "dropout": 0.1,
    "compositional_type": "blstm"
}