Token Classification
Transformers.js
ONNX
Transformers
English
Russian
Ukrainian
xlm-roberta
ner
pii
Eval Results (legacy)
Instructions to use onnx-community/pii-ner-nemotron-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/pii-ner-nemotron-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'onnx-community/pii-ner-nemotron-ONNX'); - Transformers
How to use onnx-community/pii-ner-nemotron-ONNX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="onnx-community/pii-ner-nemotron-ONNX")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("onnx-community/pii-ner-nemotron-ONNX") model = AutoModelForTokenClassification.from_pretrained("onnx-community/pii-ner-nemotron-ONNX", device_map="auto") - Notebooks
- Google Colab
- Kaggle
pii-ner-nemotron (ONNX)
This is an ONNX version of scanpatch/pii-ner-nemotron. It was automatically converted and uploaded using this Hugging Face Space.
Usage with Transformers.js
See the pipeline documentation for token-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TokenClassificationPipeline
pii-ner-nemotron
Model summary
PII NER model trained on nemotron dataset for multilingual PII entity extraction.
- Base model:
xlm-roberta-large - Repository:
scanpatch/pii-ner-nemotron - Training run name:
pii-ner-nemotron - Export timestamp (UTC):
2025-12-29T12:06:13.731145+00:00
Labels
Entity types
addressaddress_apartmentaddress_buildingaddress_cityaddress_countryaddress_districtaddress_geolocationaddress_houseaddress_postal_codeaddress_regionaddress_streetdatedocument_numberemailfirst_nameiplast_namemiddle_namemilitary_individual_numbermobile_phonenamename_initialsnicknameorganizationsnilstinvehicle_number
Evaluation
| Metric | Value |
|---|---|
test_f1 |
0.9768405285513023 |
test_precision |
0.9734942064790006 |
test_recall |
0.9802099354987895 |
test_accuracy |
0.9977181928808507 |
train_runtime |
1693.5057 |
train_samples_per_second |
238.116 |
How to use
from transformers import pipeline
ner = pipeline(
"token-classification",
model="scanpatch/pii-ner-nemotron",
aggregation_strategy="simple",
)
text = "Contact me at test@example.com and my phone is +380 67 123 45 67."
print(ner(text))
- Downloads last month
- 14
Model tree for onnx-community/pii-ner-nemotron-ONNX
Base model
FacebookAI/xlm-roberta-large Finetuned
scanpatch/pii-ner-nemotronEvaluation results
- f1self-reported0.977