Update README.md
Browse files
README.md
CHANGED
|
@@ -26,6 +26,16 @@ inference:
|
|
| 26 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 27 |
should probably proofread and complete it, then remove this comment. -->
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# distilbert-base-multilingual-cased-pii
|
| 30 |
|
| 31 |
This model is a fine-tuned version of [distilbert-base-multilingual-cased](https://huggingface.co/distilbert-base-multilingual-cased) on [ai4privacy/pii-masking-300k](https://huggingface.co/datasets/ai4privacy/pii-masking-300k)..
|
|
|
|
| 26 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 27 |
should probably proofread and complete it, then remove this comment. -->
|
| 28 |
|
| 29 |
+
Usage:
|
| 30 |
+
```python
|
| 31 |
+
from transformers import pipeline
|
| 32 |
+
|
| 33 |
+
pipe = pipeline("token-classification", model="yonigo/distilbert-base-multilingual-cased-pii", aggregation_strategy="first")
|
| 34 |
+
pipe("My name is Yoni Go and I live in Israel. My phone number is 054-1234567")
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
training code [git](https://github.com/yonigottesman/pii-model)
|
| 38 |
+
|
| 39 |
# distilbert-base-multilingual-cased-pii
|
| 40 |
|
| 41 |
This model is a fine-tuned version of [distilbert-base-multilingual-cased](https://huggingface.co/distilbert-base-multilingual-cased) on [ai4privacy/pii-masking-300k](https://huggingface.co/datasets/ai4privacy/pii-masking-300k)..
|