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
File size: 1,314 Bytes
a75faed | 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 | [
{
"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": []
}
}
]
|