def predict(self, candidates):
        """
        Using the provided rules, on the given order, applies them to each evidence
        candidate, verifying if they match or not.
        Returns a dict {evidence: True/False}, where the boolean label indicates if
        the relation is present on that evidence or not.
        """
        logger.info('Predicting using rule based core')
        predicted = {}
        for i, evidence in enumerate(candidates):
            match = self.match(evidence)
            predicted[evidence] = match if match is not None else False
            if self.verbosity > 0:
                if (i + 1) % 1000 == 0:
                    logger.info('checked {} candidate evidences'.format(i+1))
        return predicted
dataset/ETHPy150Open machinalis/iepy/iepy/extraction/rules_core.py/RuleBasedCore.predict/original