You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both default to the high-precision entity set (`EMAIL`, `PHONE`,
39
+
`CREDIT_CARD`, `SSN`); noisier types are opt-in. Known-safe values can be
40
+
exempted with an allowlist: `scan(text, allowlist=[...])` for exact values,
41
+
`allowlist_patterns=[...]` for full-match regexes (e.g. `^\d{10}$` to stop
42
+
unix timestamps matching as phone numbers) — available in both adapters and
43
+
the API. Presidio-style entity names (`EMAIL_ADDRESS`, `PHONE_NUMBER`,
44
+
`US_SSN`) are accepted as aliases for easy migration.
19
45
20
46
## Installation
21
47
@@ -42,7 +68,7 @@ pip install datafog[all]
42
68
Python 3.13 support is certified for the core SDK, CLI, `nlp`,
43
69
`nlp-advanced`, and `ocr` install profiles. Donut OCR still requires a model
44
70
that is available locally before runtime use. `distributed` and `all` are not
45
-
newly certified on Python 3.13 in the 4.5 line.
71
+
newly certified on Python 3.13 in the 4.x line.
46
72
47
73
## Quick Start
48
74
@@ -117,7 +143,7 @@ Use the engine that matches your accuracy and dependency constraints:
117
143
118
144
-`regex`:
119
145
- Fastest and always available.
120
-
- Best for default structured entities: `EMAIL`, `PHONE`, `SSN`, `CREDIT_CARD`, `IP_ADDRESS`, `DATE`, `ZIP_CODE`.
146
+
- Best for default structured entities: `EMAIL`, `PHONE`, `SSN`, `CREDIT_CARD`, `IP_ADDRESS`, `DATE`, `ZIP_CODE` (`DOB` and `ZIP` are accepted as input aliases).
121
147
- Use `locales=["de"]` for German structured IDs such as `DE_VAT_ID`, `DE_IBAN`, `DE_TAX_ID`, `DE_POSTAL_CODE`, and passport or residence permit numbers.
122
148
-`spacy`:
123
149
- Requires `pip install datafog[nlp]`.
@@ -131,7 +157,7 @@ Use the engine that matches your accuracy and dependency constraints:
131
157
132
158
## Optional OCR And Spark Surfaces
133
159
134
-
DataFog 4.5 keeps the main package story centered on lightweight text PII
160
+
The 4.x line keeps the main package story centered on lightweight text PII
135
161
screening. OCR and Spark remain supported optional surfaces for users who
136
162
already rely on them, but they are not required for the core import, default
137
163
scan/redact helpers, or guardrail helpers.
@@ -151,7 +177,7 @@ scan/redact helpers, or guardrail helpers.
151
177
- A Java runtime is required by PySpark.
152
178
153
179
OCR and Spark are not deprecated. Their broader API and packaging overhaul is
154
-
deferred; the 4.5 goal is to keep them explicit, documented, and isolated from
180
+
deferred; the 4.x goal is to keep them explicit, documented, and isolated from
0 commit comments