code: def __init__(self, args, task):
      super().__init__(args, task)
      self.self_rescorer = SimpleModelScorer(args, None, None, task)
      self.rescore_models = self.load_rescore_models(args)
      self.args = args
      self.task = task
  
file_path: translate/pytorch_translate/research/rescore/rescoring_criterion.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import math
  import torch
  from fairseq import utils
  from fairseq.criterions import LegacyFairseqCriterion, register_criterion
  from pytorch_translate import generate, utils
  from pytorch_translate.rescoring.model_scorers import SimpleModelScorer
  from pytorch_translate.rescoring.rescorer import add_args, combine_weighted_scores, Rescorer
label_desc: Use image node_id 1 to create a new RescoringCriterion object from inherited base classes: LegacyFairseqCriterion with example: obj = RescoringCriterion(args, task)