Zero-Shot Classification
Core ML
GLiNER
GLiNER2
English
coremltools
deberta-v3
apple-silicon
fp16
multifunction
Instructions to use augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512 with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512") 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"]) - GLiNER2
How to use augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512 with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Download tests/golden.json from augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512: direct link, hf CLI and curl.
- Browser
- Download file 2.45 kB
-
https://huggingface.co/augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512/resolve/cb96101a108e3e756eb581e6be780eac3a93b2f2/tests/golden.json
- Command line
-
hf download hf://augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512@cb96101a108e3e756eb581e6be780eac3a93b2f2/tests/golden.json
-
curl -L -o golden.json https://huggingface.co/augustoFranke/GLiNER2.5-Decide-CoreML-FP16-MultiFn-L64-512/resolve/cb96101a108e3e756eb581e6be780eac3a93b2f2/tests/golden.json
2.45 kB
| { | |
| "source_model": "fastino/GLiNER2.5-Decide", | |
| "source_revision": "65624f1a0265b3f612bae66a2685a06b94a68a9d", | |
| "cases": { | |
| "short-refund": { | |
| "intent": { | |
| "label": "refund_request", | |
| "confidence": 0.9987769722938538 | |
| }, | |
| "urgency": { | |
| "label": "low", | |
| "confidence": 0.3725019693374634 | |
| } | |
| }, | |
| "laptop-review-aspects": { | |
| "sentiment": { | |
| "label": "positive", | |
| "confidence": 0.9994937181472778 | |
| }, | |
| "aspects": [ | |
| { | |
| "label": "battery", | |
| "confidence": 0.7610353231430054 | |
| }, | |
| { | |
| "label": "keyboard", | |
| "confidence": 0.9939987659454346 | |
| }, | |
| { | |
| "label": "screen", | |
| "confidence": 0.9846210479736328 | |
| } | |
| ] | |
| }, | |
| "compliance-email-3-heads": { | |
| "intent": { | |
| "label": "request", | |
| "confidence": 0.44433778524398804 | |
| }, | |
| "urgency": { | |
| "label": "critical", | |
| "confidence": 0.411828875541687 | |
| }, | |
| "route": { | |
| "label": "legal", | |
| "confidence": 0.5800722241401672 | |
| } | |
| }, | |
| "descriptions-and-prompt": { | |
| "intent": { | |
| "label": "refund_request", | |
| "confidence": 0.914971113204956 | |
| }, | |
| "urgency": { | |
| "label": "normal", | |
| "confidence": 0.38015663623809814 | |
| } | |
| }, | |
| "hotel-complaint-4-heads": { | |
| "intent": { | |
| "label": "checkout", | |
| "confidence": 0.9280232191085815 | |
| }, | |
| "priority": { | |
| "label": "urgent", | |
| "confidence": 0.3841314911842346 | |
| }, | |
| "needs_human": { | |
| "label": "yes", | |
| "confidence": 0.6280083060264587 | |
| }, | |
| "topics": [ | |
| { | |
| "label": "hvac", | |
| "confidence": 0.8771321773529053 | |
| }, | |
| { | |
| "label": "billing", | |
| "confidence": 0.6899283528327942 | |
| } | |
| ] | |
| }, | |
| "incident-report-long": { | |
| "doc_type": { | |
| "label": "incident_report", | |
| "confidence": 0.5693653225898743 | |
| }, | |
| "severity": { | |
| "label": "sev3", | |
| "confidence": 0.33189529180526733 | |
| }, | |
| "teams": [ | |
| { | |
| "label": "payments", | |
| "confidence": 0.9709568619728088 | |
| }, | |
| { | |
| "label": "finance", | |
| "confidence": 0.8886100053787231 | |
| }, | |
| { | |
| "label": "support", | |
| "confidence": 0.8042415976524353 | |
| } | |
| ] | |
| } | |
| } | |
| } | |