Token Classification
GLiNER
PyTorch
English
nvidia
PII
PHI
GLiNER
information extraction
entity recognition
privacy
Instructions to use nvidia/gliner-PII with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use nvidia/gliner-PII with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("nvidia/gliner-PII") text = "Cristiano Ronaldo dos Santos Aveiro was born on 5 February 1985 in Funchal, Madeira, Portugal." labels = ["person", "date", "location"] entities = model.predict_entities(text, labels) for entity in entities: print(entity["text"], "=>", entity["label"]) - Notebooks
- Google Colab
- Kaggle
Download spm.model from nvidia/gliner-PII: direct link, hf CLI and curl.
- Browser
- Download file 2.46 MB
-
https://huggingface.co/nvidia/gliner-PII/resolve/main/spm.model
- Command line
-
hf download hf://nvidia/gliner-PII/spm.model
-
curl -L -o spm.model https://huggingface.co/nvidia/gliner-PII/resolve/main/spm.model
2.46 MB
- Xet hash:
- ceef70ee5c068f2e8ec2ea787d1566d2f5846b612f0e0a3879edffa246dc91cf
- Size of remote file:
- 2.46 MB
- SHA256:
- c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.