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
Copy file name to clipboardExpand all lines: README.md
+50-26Lines changed: 50 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,47 +66,71 @@ DataFog can be installed via pip:
66
66
pip install datafog
67
67
```
68
68
69
-
and in your python environment:
69
+
## Examples - Updated for v3
70
+
70
71
71
-
```
72
-
from datafog import PresidioEngine as presidio
73
-
datafog = datafog.DataFog()
74
72
75
73
```
74
+
# Example: Annotating PII
75
+
from datafog import PIIAnnotationPipeline, PIIAnnotationRequest
76
76
77
-
## Examples
77
+
# Initialize the PII annotation pipeline
78
+
pii_pipeline = PIIAnnotationPipeline()
78
79
79
-
Here are some examples of datafog being used to redact information in business contexts. Please see '/examples' for our [Getting Started](examples/getting-started.ipynb) notebook. We'll be regularly updating content and providing comprehensive guides to using DataFog in production contexts. If you have any ideas for a tutorial or guide that you would like to see, please let us know!
80
+
# Provide the text or document containing PII
81
+
pii_text = "Name: John Doe\nAddress: 123 Main St, Anytown, USA"
0 commit comments