RNNGConstraints

class pytext.models.semantic_parsers.rnng.rnng_parser.RNNGConstraints

Bases: ConfigBase

Constraints when computing valid actions.

intent_slot_nesting

bool – for the intent slot models, the top level non-terminal has to be an intent, an intent can only have slot non-terminals as children and vice-versa.

ignore_loss_for_unsupported

bool – if the data has “unsupported” label, that is if the label has a substring “unsupported” in it, do not compute loss

no_slots_inside_unsupported

bool – if the data has “unsupported” label, that is if the label has a substring “unsupported” in it, do not predict slots inside this label.

All Attributes (including base classes)

intent_slot_nesting: bool = True
ignore_loss_for_unsupported: bool = False
no_slots_inside_unsupported: bool = True

Default JSON

{
    "intent_slot_nesting": true,
    "ignore_loss_for_unsupported": false,
    "no_slots_inside_unsupported": true
}