Text Classification
Transformers
ONNX
Safetensors
multilingual
xlm-roberta
privacy
pii-detection
text-embeddings-inference
Instructions to use Roblox/roblox-pii-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Roblox/roblox-pii-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Roblox/roblox-pii-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Roblox/roblox-pii-classifier") model = AutoModelForSequenceClassification.from_pretrained("Roblox/roblox-pii-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update Readme for Cutoffs (#1)
Browse files- Update Readme for Cutoffs (d7eaa7d179b6a0fe199a04a660b0d161f3f7b33d)
Co-authored-by: Jordan Ren <jordansren@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -17,7 +17,7 @@ The model classifies text into two PII-related categories in a multi-label fashi
|
|
| 17 |
- **PRIVACY_ASKING_FOR_PII**: Attempting to obtain personal identifying information (PII) through direct questions or insinuation.
|
| 18 |
- **PRIVACY_GIVING_PII**: Sharing or threatening to share someone's personal identifying information (PII), including but not limited to telephone numbers, email addresses, government ID numbers, social media handles, and account passwords/credentials. This category also includes attempts to direct a user off-platform to an external platform or real-world location (DUOP).
|
| 19 |
|
| 20 |
-
The classifier expects text input with a maximum sequence length of 512 tokens. The outputs are uncalibrated scores. The recommended cutoff for pii detection is when the sum of both categories `privacy_asking_for_pii + privacy_giving_pii >= 0.26911312`, which achives the optimal F1 score on Roblox English anonymized chat.
|
| 21 |
|
| 22 |
The table below displays evaluation metrics on internal held-out datasets and comparisons with other state-of-the-art models.
|
| 23 |
|
|
|
|
| 17 |
- **PRIVACY_ASKING_FOR_PII**: Attempting to obtain personal identifying information (PII) through direct questions or insinuation.
|
| 18 |
- **PRIVACY_GIVING_PII**: Sharing or threatening to share someone's personal identifying information (PII), including but not limited to telephone numbers, email addresses, government ID numbers, social media handles, and account passwords/credentials. This category also includes attempts to direct a user off-platform to an external platform or real-world location (DUOP).
|
| 19 |
|
| 20 |
+
The classifier expects text input with a maximum sequence length of 512 tokens. The outputs are uncalibrated scores. The recommended cutoff for pii detection is when the sum of both categories `privacy_asking_for_pii + privacy_giving_pii >= 0.26911312`, which achives the optimal F1 score on Roblox English anonymized chat. For per-category cutoffs we recommend `privacy_asking_for_pii >= 0.2` and `privacy_giving_pii >= 0.3`.
|
| 21 |
|
| 22 |
The table below displays evaluation metrics on internal held-out datasets and comparisons with other state-of-the-art models.
|
| 23 |
|