def METHOD_NAME(self, qrels_file):
    qrels = {}
    with open(qrels_file) as f:
        for line in f:
            qid, n, docid, qrel = line.split()
            if qid not in qrels:
                qrels[qid] = set()
            qrels[qid].add(docid)
    return qrels