def get_found_entities(self, entity_key_prefix, gazette_manager=None):
        found_entities = []
        tokens = self.get_tokens()
        for i, j, kind in self.get_entity_occurrences():
            alias = " ".join(tokens[i:j])

            if gazette_manager is not None:
                from_gazette = gazette_manager.was_entry_created_by_gazette(alias, kind)
            else:
                from_gazette = False

            if from_gazette:
                kind = gazette_manager.strip_kind(kind)
                key = alias
            else:
                key = "{} {} {} {}".format(entity_key_prefix, kind, i, j)

            found_entities.append(FoundEntity(
                key=key,
                kind_name=kind,
                alias=alias,
                offset=i,
                offset_end=j,
                from_gazette=from_gazette
            ))
        return found_entities
Only load if the mysql module is available in __salt__
dataset/ETHPy150Open machinalis/iepy/iepy/preprocess/stanford_preprocess.py/StanfordAnalysis.get_found_entities--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/mysql_database.py/__virtual__