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
File size: 2,453 Bytes
cb96101 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | {
"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
}
]
}
}
}
|