class_docstr: Ranking task on multiple sentences.
  
  Args:
      dictionary (Dictionary): the dictionary for the input of the task
class_docstr_tok: ["Ranking","task","on","multiple","sentences",".","Args",":","dictionary","(","Dictionary",")",":","the","dictionary","for","the","input","of","the","task"]
code: def build_model(self, args, from_checkpoint=False):
      from fairseq import models
  
      model = models.build_model(args, self, from_checkpoint)
  
      model.register_classification_head(
          getattr(
              args, "ranking_head_name", "sentence_classification_head"
          ),
          num_classes=1,
      )
  
      return model
  
file_path: fairseq/fairseq/tasks/sentence_ranking.py
imports: import logging
  import os
  import numpy
  from fairseq import utils
  from fairseq.data import ConcatSentencesDataset, Dictionary, IdDataset, NestedDictionaryDataset, NumelDataset, NumSamplesDataset, PrependTokenDataset, RawLabelDataset, RightPadDataset, SortDataset, TruncateDataset, data_utils
  from fairseq.data.shorten_dataset import maybe_shorten_dataset
  from fairseq.tasks import LegacyFairseqTask, register_task
label_desc: Use image node_id 6 for calling the SentenceRankingTask obj's underlying member method code with example usage: obj.build_model(args, from_checkpoint) and returns: model