Token Classification
Transformers.js
ONNX
bert
pii
pii-redaction
privacy
named-entity-recognition
on-device
Instructions to use hackshare/curtain-privacy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use hackshare/curtain-privacy with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'hackshare/curtain-privacy');
Upload config.json with huggingface_hub
Browse files- config.json +3 -3
config.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"classifier_dropout": null,
|
| 7 |
"dtype": "float32",
|
| 8 |
-
"gradient_checkpointing": false,
|
| 9 |
"hidden_act": "gelu",
|
| 10 |
"hidden_dropout_prob": 0.1,
|
| 11 |
"hidden_size": 384,
|
|
@@ -89,11 +88,12 @@
|
|
| 89 |
"max_position_embeddings": 512,
|
| 90 |
"model_type": "bert",
|
| 91 |
"num_attention_heads": 12,
|
| 92 |
-
"num_hidden_layers":
|
| 93 |
"pad_token_id": 0,
|
| 94 |
"position_embedding_type": "absolute",
|
|
|
|
| 95 |
"transformers_version": "4.57.6",
|
| 96 |
"type_vocab_size": 2,
|
| 97 |
"use_cache": true,
|
| 98 |
-
"vocab_size":
|
| 99 |
}
|
|
|
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"classifier_dropout": null,
|
| 7 |
"dtype": "float32",
|
|
|
|
| 8 |
"hidden_act": "gelu",
|
| 9 |
"hidden_dropout_prob": 0.1,
|
| 10 |
"hidden_size": 384,
|
|
|
|
| 88 |
"max_position_embeddings": 512,
|
| 89 |
"model_type": "bert",
|
| 90 |
"num_attention_heads": 12,
|
| 91 |
+
"num_hidden_layers": 12,
|
| 92 |
"pad_token_id": 0,
|
| 93 |
"position_embedding_type": "absolute",
|
| 94 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 95 |
"transformers_version": "4.57.6",
|
| 96 |
"type_vocab_size": 2,
|
| 97 |
"use_cache": true,
|
| 98 |
+
"vocab_size": 113876
|
| 99 |
}
|