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")# 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 inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Copyright ©
|
| 2 |
|
| 3 |
"""
|
| 4 |
This file gives a sample demonstration of how to use the given functions in Python, for the PII classification model.
|
|
|
|
| 1 |
+
# Copyright © 2024 Roblox Corporation
|
| 2 |
|
| 3 |
"""
|
| 4 |
This file gives a sample demonstration of how to use the given functions in Python, for the PII classification model.
|