Instructions to use rafmacalaba/gliner-datause-catchall-singlepass with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use rafmacalaba/gliner-datause-catchall-singlepass with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("rafmacalaba/gliner-datause-catchall-singlepass") 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
File size: 533 Bytes
dd17c26 | 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 | {
"global_best": {
"thr": 0.5,
"f1": 0.8467,
"precision": 0.819,
"recall": 0.8763
},
"per_origin": {
"fcv_pads_east_africa": {
"thr": 0.5,
"f1": 0.8046
},
"general_prwp": {
"thr": 0.4,
"f1": 0.8796
},
"jad_paddy_docs": {
"thr": 0.1,
"f1": 0.9693
},
"jdc_operational": {
"thr": 0.6,
"f1": 0.8019
},
"refugee_pads": {
"thr": 0.5,
"f1": 0.8387
},
"reliefweb": {
"thr": 0.4,
"f1": 0.7738
}
}
} |