MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / ConstraintSeq2SeqTrainingArguments

Class ConstraintSeq2SeqTrainingArguments

seq2seq/constrained_seq2seq.py:71–80  ·  view source on GitHub ↗

Parameters: constraint_decoding (:obj:`bool`, `optional`, defaults to :obj:`False`): Whether to use Constraint Decoding structure_weight (:obj:`float`, `optional`, defaults to :obj:`None`):

Source from the content-addressed store, hash-verified

69
70@dataclass
71class ConstraintSeq2SeqTrainingArguments(Seq2SeqTrainingArguments):
72 """
73 Parameters:
74 constraint_decoding (:obj:`bool`, `optional`, defaults to :obj:`False`):
75 Whether to use Constraint Decoding
76 structure_weight (:obj:`float`, `optional`, defaults to :obj:`None`):
77 """
78 constraint_decoding: bool = field(default=False, metadata={"help": "Whether to Constraint Decoding or not."})
79 label_smoothing_sum: bool = field(default=False,
80 metadata={"help": "Whether to use sum token loss for label smoothing"})
81
82
83class ConstraintSeq2SeqTrainer(Seq2SeqTrainer):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected