Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.40.0
metadata
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:
Clone the repository
git clone https://huggingface.co/spaces/langdonholmes/piilo
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
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
Add PIILO to path
- Navigate to PIILO repository on your filesystem:
cd piilo
pipenv install -e .
- Navigate to PIILO repository on your filesystem:
Use piilo in your project
import piilo
texts = ['test string without identifiers', 'My name is Antonio. Email: Antonio99@yahoo.com']
# 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.