Instructions to use EasyOctopus/german-support-pii-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EasyOctopus/german-support-pii-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="EasyOctopus/german-support-pii-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("EasyOctopus/german-support-pii-model") model = AutoModelForTokenClassification.from_pretrained("EasyOctopus/german-support-pii-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download examples.json from EasyOctopus/german-support-pii-model: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/EasyOctopus/german-support-pii-model/resolve/main/examples.json
- Command line
-
hf download hf://EasyOctopus/german-support-pii-model/examples.json
-
curl -L -o examples.json https://huggingface.co/EasyOctopus/german-support-pii-model/resolve/main/examples.json
1.31 kB
| [ | |
| { | |
| "input": "Im Fundbüro des Hotels liegt mein Beutel. Auf dem Schild steht Nino Đurić, reserviert hatte ich unter AB/754736-X.", | |
| "output": { | |
| "redacted_text": "Im Fundbüro des Hotels liegt mein Beutel. Auf dem Schild steht [PERSON], reserviert hatte ich unter [CUSTOMER_ID].", | |
| "entities": [ | |
| { | |
| "start": 63, | |
| "end": 73, | |
| "label": "PERSON" | |
| }, | |
| { | |
| "start": 102, | |
| "end": 113, | |
| "label": "CUSTOMER_ID" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "input": "Für die Kontenklärung soll ich den Geburtstag 13.07.1976 und die Versicherungskennung G766176000 nennen.", | |
| "output": { | |
| "redacted_text": "Für die Kontenklärung soll ich den Geburtstag [DATE_OF_BIRTH] und die Versicherungskennung [INSURANCE_ID] nennen.", | |
| "entities": [ | |
| { | |
| "start": 46, | |
| "end": 56, | |
| "label": "DATE_OF_BIRTH" | |
| }, | |
| { | |
| "start": 86, | |
| "end": 96, | |
| "label": "INSURANCE_ID" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "input": "Die Kompatibilitätsliste nennt für Baureihe MK-64708-L mindestens Firmware 4.3.6.", | |
| "output": { | |
| "redacted_text": "Die Kompatibilitätsliste nennt für Baureihe MK-64708-L mindestens Firmware 4.3.6.", | |
| "entities": [] | |
| } | |
| } | |
| ] | |