class_docstr: Re-ranker object which uses a predictor model to rerank candidates given.
  
  This AbstractReranker can be subclassed to use any classifier or ranking model as
  the predictor.
class_docstr_tok: ["Re-ranker","object","which","uses","a","predictor","model","to","rerank","candidates","given",".","This","AbstractReranker","can","be","subclassed","to","use","any","classifier","or","ranking","model","as","the","predictor","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ):
      reranker = parser.add_argument_group("AbstractReranker Args")
      reranker.add_argument(
          "--normalize-candidates",
          type=str,
          default=False,
          help="Remove spaces and add capitalization as per ParlAI normalize_reply() function",
      )
      reranker.add_argument(
          "--predictor-model-file",
          type=str,
          default=None,
          help="Path to model whose prediction score will be used to rerank, usually a classifier or ranker",
      )
      reranker.add_argument(
          "--reranker-strategy",
          type=str,
          default="reranker_score",
          help="Which strategy to use when re-ranking response candidates. "
          f"Choices: {','.join(RERANKER_STRATEGIES)}",
      )
      reranker.add_argument(
          "--reranker-delimiter",
          type=str,
          default=None,
          help="delimiter for the reranker",
      )
      return parser
  
imports: import logging
  import torch
  from abc import ABC, abstractmethod, abstractclassmethod
  from typing import List, Optional, Tuple
  from parlai.agents.transformer.transformer import TransformerGeneratorAgent
  from parlai.core.agents import create_agent_from_model_file, Agent
  from parlai.core.build_data import modelzoo_path
  from parlai.core.message import Message
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.core.torch_agent import TorchAgent
  from parlai.utils.strings import normalize_reply
  from parlai.utils.torch import argsort
  from parlai.agents.hugging_face.gpt2 import Gpt2Agent
  from projects.msc.agents.long_tga import TransformerVariantAgent
label_desc: Use image node_id 1 for calling the AbstractReranker obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser