def _merge_classifcation_results()

in src/processors.py [0:0]


    def _merge_classifcation_results(self, segment: Document, existing_results: map = {}):
        for name, score in segment.pii_classification.items():
            if name not in existing_results or (
                    name in existing_results and score > existing_results[name]):
                existing_results[name] = score
        return existing_results