Instructions to use urchade/gliner_multi_pii-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use urchade/gliner_multi_pii-v1 with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("urchade/gliner_multi_pii-v1") 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
Add tokenizer files and safetensor model
#11
by vrdn23 - opened
Script to generate the files
from gliner import GLiNER
model = GLiNER.from_pretrained("urchade/gliner_multi_pii-v1")
model.save_pretrained("pii-gliner",safe_serialization=True)
vrdn23 changed pull request status to closed