Views
No views yet
| Label | Description | Examples |
|---|---|---|
AU_ORGANISATION | Private companies, banks, retailers, universities, NFPs | Guzman y Gomez, Bapcor, TAFE Queensland, Lifeline Australia |
AU_GOV_AGENCY | Government departments, regulatory bodies, public services | TfNSW, SA Department for Education, Fair Work Commission, APRA |
AU_LOCATION | Suburbs, cities, towns, states, territories | Nhulunbuy, Warakurna, Indooroopilly, Mount Kuring-gai |
1from gliner import GLiNER
2
3model = GLiNER.from_pretrained("cutaa/gliner-au-pii-v1")
4
5labels = ["AU_ORGANISATION", "AU_GOV_AGENCY", "AU_LOCATION"]
6
7text = "I switched from HCF to Teachers Health and it made no difference in Yugambeh."
8entities = model.predict_entities(text, labels, threshold=0.5)
9
10for entity in entities:
11print(f"[{entity['label']}] '{entity['text']}' ({entity['score']:.2f})")1def mask_pii(text: str, model, threshold: float = 0.5) -> str:
2labels = ["AU_ORGANISATION", "AU_GOV_AGENCY", "AU_LOCATION"]
3entities = model.predict_entities(text, labels, threshold=threshold)
4entities = sorted(entities, key=lambda x: x["start"], reverse=True)
5for entity in entities:
6text = text[:entity["start"]] + f"[{entity['label']}]" + text[entity["end"]:]
7return text
8
9mask_pii("I work at Bapcor in Caringbah.", model)
10# → "I work at [AU_ORGANISATION] in [AU_LOCATION]."1from gliner import GLiNER
2
3# Base model handles names, emails, phones, dates, generic PII
4base_model = GLiNER.from_pretrained("knowledgator/gliner-pii-large-v1.0")
5
6# This model handles AU organisations and locations
7au_model = GLiNER.from_pretrained("cutaa/gliner-au-pii-v1")
8
9base_labels = ["person", "email", "phone", "date of birth", "address"]
10au_labels = ["AU_ORGANISATION", "AU_GOV_AGENCY", "AU_LOCATION"]
11
12base_entities = base_model.predict_entities(text, base_labels, threshold=0.5)
13au_entities = au_model.predict_entities(text, au_labels, threshold=0.5)
14
15all_entities = base_entities + au_entities| Version | Training samples | Notes |
|---|---|---|
| v1 | ~5000 | Initial release — core AU entity coverage |