    def build_criterion(cls, args, task):
        """Construct a criterion from command-line args."""
        return cls(args, task)
Construct a criterion from command-line args.
fairseq/criterions/fairseq_criterion.py