IntentSlotModelDecoder.Config

Component: IntentSlotModelDecoder

class IntentSlotModelDecoder.Config[source]

Bases: DecoderBase.Config

Configuration class for IntentSlotModelDecoder.

use_doc_probs_in_word

Whether to use intent probabilities for predicting slots.

Type:bool

All Attributes (including base classes)

load_path: Optional[str] = None
save_path: Optional[str] = None
freeze: bool = False
shared_module_key: Optional[str] = None
use_doc_probs_in_word: bool = False
doc_decoder: MLPDecoder.Config = MLPDecoder.Config()
word_decoder: MLPDecoder.Config = MLPDecoder.Config()

Default JSON

{
    "load_path": null,
    "save_path": null,
    "freeze": false,
    "shared_module_key": null,
    "use_doc_probs_in_word": false,
    "doc_decoder": {
        "load_path": null,
        "save_path": null,
        "freeze": false,
        "shared_module_key": null,
        "hidden_dims": [],
        "out_dim": null,
        "layer_norm": false,
        "dropout": 0.0,
        "bias": true,
        "activation": "relu",
        "temperature": 1.0,
        "spectral_normalization": false
    },
    "word_decoder": {
        "load_path": null,
        "save_path": null,
        "freeze": false,
        "shared_module_key": null,
        "hidden_dims": [],
        "out_dim": null,
        "layer_norm": false,
        "dropout": 0.0,
        "bias": true,
        "activation": "relu",
        "temperature": 1.0,
        "spectral_normalization": false
    }
}