Spaces:
Sleeping
Sleeping
File size: 1,336 Bytes
cf5e6c9 87ac510 5eb2119 87ac510 5eb2119 5959a8e 5eb2119 5959a8e e45a665 32f749f 5959a8e e45a665 87ac510 5eb2119 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
---
title: Piilo
emoji: π
colorFrom: purple
colorTo: purple
sdk: streamlit
sdk_version: 1.10.0
app_file: app.py
pinned: false
license: apache-2.0
---
Currently, the best way to install PIILO is using pipenv:
1. Clone the repository
- `git clone https://huggingface.co/spaces/langdonholmes/piilo`
2. Install dependencies from Pipfile
- Install pipenv, if you do not have it.
- `pip install --user pipenv`
- Use pipenv to install from the Pipfile
- `pipenv install`
3. Install the finetuned transformer
```
pipenv install https://huggingface.co/langdonholmes/en_student_name_detector/resolve/main/en_student_name_detector-any-py3-none-any.whl
```
4. Add PIILO to path
- Navigate to PIILO repository on your filesystem: `cd piilo`
- `pipenv install -e .`
5. Use piilo in your project
```
import piilo
texts = ['test string without identifiers', 'My name is Antonio. Email: [email protected]']
# To analyze the texts. Returns list of RecognizerResult, defined by presidio_analyzer
results = [piilo.analyze(text) for text in texts]
# To analyze AND anonymize with hiding-in-plain-sight obfuscation. Returns list of texts with identifiers obfuscated.
cleaned_texts = [piilo.anonymize(text) for text in texts]
```
TODO:
Create a command line version using Typer in this same repository. |