Token Classification
Transformers.js
ONNX
French
English
xlm-roberta
pii
redaction
privacy
ner
french
quebec
int8
gdpr
law-25
Instructions to use ZenSystemAI/ossredact-pii-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use ZenSystemAI/ossredact-pii-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'ZenSystemAI/ossredact-pii-base');
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "XLMRobertaForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-account_number", | |
| "2": "I-account_number", | |
| "3": "B-address", | |
| "4": "I-address", | |
| "5": "B-card_cvv", | |
| "6": "I-card_cvv", | |
| "7": "B-card_expiry", | |
| "8": "I-card_expiry", | |
| "9": "B-date_of_birth", | |
| "10": "I-date_of_birth", | |
| "11": "B-email", | |
| "12": "I-email", | |
| "13": "B-file_path", | |
| "14": "I-file_path", | |
| "15": "B-government_id", | |
| "16": "I-government_id", | |
| "17": "B-iban", | |
| "18": "I-iban", | |
| "19": "B-ip_address", | |
| "20": "I-ip_address", | |
| "21": "B-organization", | |
| "22": "I-organization", | |
| "23": "B-password", | |
| "24": "I-password", | |
| "25": "B-payment_card", | |
| "26": "I-payment_card", | |
| "27": "B-person", | |
| "28": "I-person", | |
| "29": "B-phone_number", | |
| "30": "I-phone_number", | |
| "31": "B-postal_code", | |
| "32": "I-postal_code", | |
| "33": "B-secret", | |
| "34": "I-secret", | |
| "35": "B-sensitive_account_id", | |
| "36": "I-sensitive_account_id", | |
| "37": "B-tax_id", | |
| "38": "I-tax_id", | |
| "39": "B-username", | |
| "40": "I-username" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "label2id": { | |
| "B-account_number": 1, | |
| "B-address": 3, | |
| "B-card_cvv": 5, | |
| "B-card_expiry": 7, | |
| "B-date_of_birth": 9, | |
| "B-email": 11, | |
| "B-file_path": 13, | |
| "B-government_id": 15, | |
| "B-iban": 17, | |
| "B-ip_address": 19, | |
| "B-organization": 21, | |
| "B-password": 23, | |
| "B-payment_card": 25, | |
| "B-person": 27, | |
| "B-phone_number": 29, | |
| "B-postal_code": 31, | |
| "B-secret": 33, | |
| "B-sensitive_account_id": 35, | |
| "B-tax_id": 37, | |
| "B-username": 39, | |
| "I-account_number": 2, | |
| "I-address": 4, | |
| "I-card_cvv": 6, | |
| "I-card_expiry": 8, | |
| "I-date_of_birth": 10, | |
| "I-email": 12, | |
| "I-file_path": 14, | |
| "I-government_id": 16, | |
| "I-iban": 18, | |
| "I-ip_address": 20, | |
| "I-organization": 22, | |
| "I-password": 24, | |
| "I-payment_card": 26, | |
| "I-person": 28, | |
| "I-phone_number": 30, | |
| "I-postal_code": 32, | |
| "I-secret": 34, | |
| "I-sensitive_account_id": 36, | |
| "I-tax_id": 38, | |
| "I-username": 40, | |
| "O": 0 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "xlm-roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "output_past": true, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.12.1", | |
| "type_vocab_size": 1, | |
| "use_cache": false, | |
| "vocab_size": 250002 | |
| } | |