def add_args(parser):
        """Add criterion-specific arguments to the parser."""
        LabelSmoothedCrossEntropyCriterion.add_args(parser)
        parser.add_argument(
            "--alignment-lambda",
            default=0.05,
            type=float,
            metavar="D",
            help="weight for the alignment loss",
        )
Add criterion-specific arguments to the parser.
decoding/IAD/fairseq/fairseq/criterions/label_smoothed_cross_entropy_with_alignment.py