def __init__()

in src/data_object.py [0:0]


    def __init__(self, pii_entity_types: List = None,
                 confidence_threshold: float = os.getenv('CONFIDENCE_THRESHOLD', 0.5),
                 **kwargs):
        self.pii_entity_types = pii_entity_types
        self.confidence_threshold = float(confidence_threshold)
        if not 0.5 <= self.confidence_threshold <= 1.0:
            raise InvalidConfigurationException('CONFIDENCE_THRESHOLD is not within allowed range [0.5,1]')
        if self.pii_entity_types is None:
            self.pii_entity_types = os.getenv('PII_ENTITY_TYPES', 'ALL').split(',')