def load_dictionary(cls, cfg, filename):
        """Load the dictionary from the filename"""
        dictionary = Dictionary.load(filename)
        dictionary.add_symbol("<mask>")  # for loading pretrained XLMR model

        return dictionary
Load the dictionary from the filename
structured_prompting/fairseq-version/fairseq/examples/discriminative_reranking_nmt/tasks/discriminative_reranking_task.py