Coverage for presidio_structured / config / structured_analysis.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-03-29 08:58 +0000

1"""Structured Analysis module.""" 

2 

3from dataclasses import dataclass 

4from typing import Dict 

5 

6 

7@dataclass 

8class StructuredAnalysis: 

9 """ 

10 Dataclass containing entity analysis from structured data. 

11 

12 Currently, this class only contains entity mapping. 

13 

14 param entity_mapping : dict. Mapping column/key names to entity types, e.g., { 

15 "person.name": "PERSON", 

16 "person.address": "LOCATION" 

17 } 

18 """ 

19 

20 entity_mapping: Dict[str, str]