Token Classification
Transformers
Safetensors
xlm-roberta
pii
privacy
gdpr
anonymization
de-identification
ner
european
Instructions to use generaldata/ApplePie with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use generaldata/ApplePie with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="generaldata/ApplePie")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("generaldata/ApplePie") model = AutoModelForTokenClassification.from_pretrained("generaldata/ApplePie", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from generaldata/ApplePie: direct link, hf CLI and curl.
- Browser
- Download file 2.73 kB
-
https://huggingface.co/generaldata/ApplePie/resolve/main/config.json
- Command line
-
hf download hf://generaldata/ApplePie/config.json
-
curl -L -o config.json https://huggingface.co/generaldata/ApplePie/resolve/main/config.json
2.73 kB
| { | |
| "architectures": [ | |
| "XLMRobertaForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-person_name", | |
| "2": "I-person_name", | |
| "3": "B-organization", | |
| "4": "I-organization", | |
| "5": "B-street_address", | |
| "6": "I-street_address", | |
| "7": "B-location", | |
| "8": "I-location", | |
| "9": "B-coordinate", | |
| "10": "I-coordinate", | |
| "11": "B-date", | |
| "12": "I-date", | |
| "13": "B-date_of_birth", | |
| "14": "I-date_of_birth", | |
| "15": "B-email", | |
| "16": "I-email", | |
| "17": "B-phone_number", | |
| "18": "I-phone_number", | |
| "19": "B-url", | |
| "20": "I-url", | |
| "21": "B-user_name", | |
| "22": "I-user_name", | |
| "23": "B-card_number", | |
| "24": "I-card_number", | |
| "25": "B-bank_account", | |
| "26": "I-bank_account", | |
| "27": "B-national_id", | |
| "28": "I-national_id", | |
| "29": "B-secret", | |
| "30": "I-secret", | |
| "31": "B-device_identifier", | |
| "32": "I-device_identifier", | |
| "33": "B-customer_id", | |
| "34": "I-customer_id", | |
| "35": "B-health_id", | |
| "36": "I-health_id", | |
| "37": "B-vehicle_identifier", | |
| "38": "I-vehicle_identifier", | |
| "39": "B-trait", | |
| "40": "I-trait" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "label2id": { | |
| "B-bank_account": 25, | |
| "B-card_number": 23, | |
| "B-coordinate": 9, | |
| "B-customer_id": 33, | |
| "B-date": 11, | |
| "B-date_of_birth": 13, | |
| "B-device_identifier": 31, | |
| "B-email": 15, | |
| "B-health_id": 35, | |
| "B-location": 7, | |
| "B-national_id": 27, | |
| "B-organization": 3, | |
| "B-person_name": 1, | |
| "B-phone_number": 17, | |
| "B-secret": 29, | |
| "B-street_address": 5, | |
| "B-trait": 39, | |
| "B-url": 19, | |
| "B-user_name": 21, | |
| "B-vehicle_identifier": 37, | |
| "I-bank_account": 26, | |
| "I-card_number": 24, | |
| "I-coordinate": 10, | |
| "I-customer_id": 34, | |
| "I-date": 12, | |
| "I-date_of_birth": 14, | |
| "I-device_identifier": 32, | |
| "I-email": 16, | |
| "I-health_id": 36, | |
| "I-location": 8, | |
| "I-national_id": 28, | |
| "I-organization": 4, | |
| "I-person_name": 2, | |
| "I-phone_number": 18, | |
| "I-secret": 30, | |
| "I-street_address": 6, | |
| "I-trait": 40, | |
| "I-url": 20, | |
| "I-user_name": 22, | |
| "I-vehicle_identifier": 38, | |
| "O": 0 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "xlm-roberta", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "output_past": true, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.53.0", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 250002 | |
| } | |