Token Classification
Transformers
ONNX
English
openai_privacy_filter
pii-detection
pii-masking
onnxruntime
privacy
Instructions to use yasserrmd/privacy-filter-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yasserrmd/privacy-filter-ONNX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="yasserrmd/privacy-filter-ONNX")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("yasserrmd/privacy-filter-ONNX") model = AutoModelForTokenClassification.from_pretrained("yasserrmd/privacy-filter-ONNX", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add tokenizer_config.json
Browse files- tokenizer_config.json +11 -0
tokenizer_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"eos_token": "<|endoftext|>",
|
| 4 |
+
"model_input_names": [
|
| 5 |
+
"input_ids",
|
| 6 |
+
"attention_mask"
|
| 7 |
+
],
|
| 8 |
+
"model_max_length": 128000,
|
| 9 |
+
"pad_token": "<|endoftext|>",
|
| 10 |
+
"tokenizer_class": "TokenizersBackend"
|
| 11 |
+
}
|