def __init__(self, **kwargs):
    super(RplEvaluator, self).__init__(**kwargs)
    self.qrel_rpl_path = kwargs.get('qrel_rpl_path', None)
    if self.qrel_rpl_path:
        with open(self.qrel_rpl_path, 'r') as f_qrel:
            qrel_rpl = pytrec_eval.parse_qrel(f_qrel)
            self.rel_eval_rpl = pytrec_eval.RelevanceEvaluator(qrel_rpl, pytrec_eval.supported_measures)
def __init__(self, **kwargs):
    super(RplEvaluator, self).__init__(**kwargs)
    self.qrel_rpl_path = kwargs.get('qrel_rpl_path', None)
    if self.qrel_rpl_path:
        with open(self.qrel_rpl_path, 'r') as f_qrel:
            qrel_rpl = pytrec_eval.parse_qrel(f_qrel)
            self.rel_eval_rpl = pytrec_eval.RelevanceEvaluator(qrel_rpl, pytrec_eval.supported_measures)