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"]
docstr: Load the dictionary from the filename
  
  Args:
      filename (str): the filename
docstr_tok: ["Load","the","dictionary","from","the","filename","Args",":","filename","(","str",")",":","the","filename"]
code: def load_dictionary(cls, args, filename, source=True):
      """Load the dictionary from the filename
  
      Args:
          filename (str): the filename
      """
      dictionary = Dictionary.load(filename)
      dictionary.add_symbol("<mask>")
      return dictionary
  
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 3 for calling the SentenceRankingTask obj's underlying member method code with example usage: obj.load_dictionary(cls, args, filename, source) and returns: dictionary