class_docstr: Equivalent of bert_ranker/crossencoder but does not rely on an external library
  (hugging face).
class_docstr_tok: ["Equivalent","of","bert_ranker\/crossencoder","but","does","not","rely","on","an","external","library","(","hugging","face",")","."]
docstr: Add command-line arguments specifically for this agent.
docstr_tok: ["Add","command-line","arguments","specifically","for","this","agent","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add command-line arguments specifically for this agent.
      """
      TransformerRankerAgent.add_cmdline_args(
          parser, partial_opt=partial_opt
      )
      parser.set_defaults(encode_candidate_vecs=False)
      return parser
  
file_path: ParlAI/parlai/agents/transformer/crossencoder.py
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from .modules import TransformerEncoder
  from parlai.core.torch_ranker_agent import TorchRankerAgent
  from .transformer import TransformerRankerAgent
  from parlai.utils.torch import concat_without_padding
  import torch
label_desc: Use image node_id 1 for calling the CrossencoderAgent obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser