Open Pouyanpi opened 2 weeks ago
Currently the AnalyzerEngine uses default_score_threshold of 0. This PR adds score_threshold to SensitiveDataDetectionOptions so that the user can set it in the config.yml. The default value is set to 0.2 but it requires further experimentation.
AnalyzerEngine
default_score_threshold
score_threshold
SensitiveDataDetectionOptions
config.yml
0.2
Example configuration:
rails: config: sensitive_data_detection: input: score_threshold: 0.4 entities: - PHONE_NUMBER - EMAIL_ADDRESS - IN_PAN - IN_AADHAAR output: entities: - PHONE_NUMBER - EMAIL_ADDRESS - IN_PAN - IN_AADHAAR
Description
Currently the
AnalyzerEngine
usesdefault_score_threshold
of 0. This PR addsscore_threshold
toSensitiveDataDetectionOptions
so that the user can set it in theconfig.yml
. The default value is set to0.2
but it requires further experimentation.Example configuration:
Related Issue(s)
Checklist