RNNGConstraints

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

Bases: ConfigBase

Constraints when computing valid actions.

intent_slot_nesting

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.

Type:bool
ignore_loss_for_unsupported

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

Type:bool
no_slots_inside_unsupported

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

Type:bool

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
}