def METHOD_NAME(self, cfg: Dict, is_index_data: bool = False) -> 'torch.utils.data.DataLoader':
    dataset = EntityLinkingDataset(
        tokenizer=self.tokenizer,
        data_file=cfg.data_file,
        max_seq_length=cfg.max_seq_length,
        is_index_data=is_index_data,
    )
    return torch.utils.data.DataLoader(
        dataset=dataset,
        batch_size=cfg.batch_size,
        collate_fn=dataset.collate_fn,
        shuffle=cfg.get("shuffle", True),
        num_workers=cfg.get("num_workers", 2),
        pin_memory=cfg.get("pin_memory", False),
        drop_last=cfg.get("drop_last", False),
    )