Instructions to use rafmacalaba/gliner_datause_v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use rafmacalaba/gliner_datause_v0 with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("rafmacalaba/gliner_datause_v0") 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
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ Fine-tune of `urchade/gliner_large-v2.1` for data-use mention extraction
|
|
| 21 |
- base model: `urchade/gliner_large-v2.1`
|
| 22 |
- dataset: `rafmacalaba/data-use-mentions-v2` (gliner config)
|
| 23 |
- corpus: `all`
|
| 24 |
-
- epochs:
|
| 25 |
- learning rate: 5e-06
|
| 26 |
- batch size: 16
|
| 27 |
- precision: bf16
|
|
@@ -30,48 +30,48 @@ Fine-tune of `urchade/gliner_large-v2.1` for data-use mention extraction
|
|
| 30 |
|
| 31 |
| thr | tp | fp | fn | precision | recall | f0.5 | f1 |
|
| 32 |
| --- | --- | --- | --- | --- | --- | --- | --- |
|
| 33 |
-
| 0.10 |
|
| 34 |
-
| 0.20 |
|
| 35 |
-
| 0.30 |
|
| 36 |
-
| 0.40 |
|
| 37 |
-
| 0.50 |
|
| 38 |
-
| 0.60 |
|
| 39 |
-
| 0.70 |
|
| 40 |
|
| 41 |
-
**Best F0.5**: 0.
|
| 42 |
-
**Best F1**: 0.
|
| 43 |
|
| 44 |
## Evaluation breakdown (holdout)
|
| 45 |
|
| 46 |
| group | examples | spans | thr | precision | recall | f0.5 | f1 |
|
| 47 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 48 |
-
| overall | 15332 | 17332 | 0.
|
| 49 |
-
| prwp | 7758 | 11375 | 0.
|
| 50 |
-
| fcv | 7574 | 5957 | 0.
|
| 51 |
-
| general_prwp | 7758 | 11375 | 0.
|
| 52 |
-
| fcv_pads_east_africa | 5351 | 3920 | 0.
|
| 53 |
-
| jdc_operational | 145 | 110 | 0.
|
| 54 |
-
| refugee_pads | 573 | 377 | 0.
|
| 55 |
-
| reliefweb | 1505 | 1550 | 0.
|
| 56 |
|
| 57 |
### Per-label (overall)
|
| 58 |
|
| 59 |
| label | examples | spans | thr | precision | recall | f0.5 | f1 |
|
| 60 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 61 |
-
| NAMED_DATA | 15332 | 7107 | 0.
|
| 62 |
-
| DESCRIPTIVE_DATA | 15332 | 8601 | 0.
|
| 63 |
-
| VAGUE_DATA | 15332 | 1624 | 0.
|
| 64 |
|
| 65 |
<details>
|
| 66 |
<summary>Origin breakdown (per-origin metrics)</summary>
|
| 67 |
|
| 68 |
| origin | examples | spans | thr | precision | recall | f0.5 | f1 |
|
| 69 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 70 |
-
| fcv_pads_east_africa | 5351 | 3920 | 0.
|
| 71 |
-
| general_prwp | 7758 | 11375 | 0.
|
| 72 |
-
| jdc_operational | 145 | 110 | 0.
|
| 73 |
-
| refugee_pads | 573 | 377 | 0.
|
| 74 |
-
| reliefweb | 1505 | 1550 | 0.
|
| 75 |
|
| 76 |
</details>
|
| 77 |
|
|
@@ -80,8 +80,8 @@ Fine-tune of `urchade/gliner_large-v2.1` for data-use mention extraction
|
|
| 80 |
|
| 81 |
| label | examples | spans | thr | precision | recall | f0.5 | f1 |
|
| 82 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 83 |
-
| NAMED_DATA | 15332 | 7107 | 0.
|
| 84 |
-
| DESCRIPTIVE_DATA | 15332 | 8601 | 0.
|
| 85 |
-
| VAGUE_DATA | 15332 | 1624 | 0.
|
| 86 |
|
| 87 |
</details>
|
|
|
|
| 21 |
- base model: `urchade/gliner_large-v2.1`
|
| 22 |
- dataset: `rafmacalaba/data-use-mentions-v2` (gliner config)
|
| 23 |
- corpus: `all`
|
| 24 |
+
- epochs: 5
|
| 25 |
- learning rate: 5e-06
|
| 26 |
- batch size: 16
|
| 27 |
- precision: bf16
|
|
|
|
| 30 |
|
| 31 |
| thr | tp | fp | fn | precision | recall | f0.5 | f1 |
|
| 32 |
| --- | --- | --- | --- | --- | --- | --- | --- |
|
| 33 |
+
| 0.10 | 16553 | 64389 | 552 | 0.2045 | 0.9677 | 0.2428 | 0.3377 |
|
| 34 |
+
| 0.20 | 16274 | 32132 | 831 | 0.3362 | 0.9514 | 0.3861 | 0.4968 |
|
| 35 |
+
| 0.30 | 15597 | 18446 | 1508 | 0.4582 | 0.9118 | 0.5088 | 0.6099 |
|
| 36 |
+
| 0.40 | 13992 | 10141 | 3113 | 0.5798 | 0.8180 | 0.6156 | 0.6786 |
|
| 37 |
+
| 0.50 | 10189 | 4475 | 6916 | 0.6948 | 0.5957 | 0.6724 | 0.6414 |
|
| 38 |
+
| 0.60 | 4852 | 1332 | 12253 | 0.7846 | 0.2837 | 0.5798 | 0.4167 |
|
| 39 |
+
| 0.70 | 1272 | 245 | 15833 | 0.8385 | 0.0744 | 0.2745 | 0.1366 |
|
| 40 |
|
| 41 |
+
**Best F0.5**: 0.6724 (thr=0.5)
|
| 42 |
+
**Best F1**: 0.6786 (thr=0.4)
|
| 43 |
|
| 44 |
## Evaluation breakdown (holdout)
|
| 45 |
|
| 46 |
| group | examples | spans | thr | precision | recall | f0.5 | f1 |
|
| 47 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 48 |
+
| overall | 15332 | 17332 | 0.50 | 0.6948 | 0.5957 | 0.6724 | 0.6414 |
|
| 49 |
+
| prwp | 7758 | 11375 | 0.50 | 0.7719 | 0.6282 | 0.7382 | 0.6927 |
|
| 50 |
+
| fcv | 7574 | 5957 | 0.50 | 0.5642 | 0.5318 | 0.5574 | 0.5475 |
|
| 51 |
+
| general_prwp | 7758 | 11375 | 0.50 | 0.7719 | 0.6282 | 0.7382 | 0.6927 |
|
| 52 |
+
| fcv_pads_east_africa | 5351 | 3920 | 0.50 | 0.5332 | 0.5332 | 0.5332 | 0.5332 |
|
| 53 |
+
| jdc_operational | 145 | 110 | 0.50 | 0.4776 | 0.5872 | 0.4961 | 0.5267 |
|
| 54 |
+
| refugee_pads | 573 | 377 | 0.50 | 0.4732 | 0.5442 | 0.4859 | 0.5062 |
|
| 55 |
+
| reliefweb | 1505 | 1550 | 0.50 | 0.7178 | 0.5212 | 0.6675 | 0.6039 |
|
| 56 |
|
| 57 |
### Per-label (overall)
|
| 58 |
|
| 59 |
| label | examples | spans | thr | precision | recall | f0.5 | f1 |
|
| 60 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 61 |
+
| NAMED_DATA | 15332 | 7107 | 0.60 | 0.6049 | 0.4388 | 0.5623 | 0.5087 |
|
| 62 |
+
| DESCRIPTIVE_DATA | 15332 | 8601 | 0.50 | 0.4997 | 0.2891 | 0.4361 | 0.3663 |
|
| 63 |
+
| VAGUE_DATA | 15332 | 1624 | 0.40 | 0.2019 | 0.1078 | 0.1719 | 0.1405 |
|
| 64 |
|
| 65 |
<details>
|
| 66 |
<summary>Origin breakdown (per-origin metrics)</summary>
|
| 67 |
|
| 68 |
| origin | examples | spans | thr | precision | recall | f0.5 | f1 |
|
| 69 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 70 |
+
| fcv_pads_east_africa | 5351 | 3920 | 0.50 | 0.5332 | 0.5332 | 0.5332 | 0.5332 |
|
| 71 |
+
| general_prwp | 7758 | 11375 | 0.50 | 0.7719 | 0.6282 | 0.7382 | 0.6927 |
|
| 72 |
+
| jdc_operational | 145 | 110 | 0.50 | 0.4776 | 0.5872 | 0.4961 | 0.5267 |
|
| 73 |
+
| refugee_pads | 573 | 377 | 0.50 | 0.4732 | 0.5442 | 0.4859 | 0.5062 |
|
| 74 |
+
| reliefweb | 1505 | 1550 | 0.50 | 0.7178 | 0.5212 | 0.6675 | 0.6039 |
|
| 75 |
|
| 76 |
</details>
|
| 77 |
|
|
|
|
| 80 |
|
| 81 |
| label | examples | spans | thr | precision | recall | f0.5 | f1 |
|
| 82 |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 83 |
+
| NAMED_DATA | 15332 | 7107 | 0.60 | 0.6049 | 0.4388 | 0.5623 | 0.5087 |
|
| 84 |
+
| DESCRIPTIVE_DATA | 15332 | 8601 | 0.50 | 0.4997 | 0.2891 | 0.4361 | 0.3663 |
|
| 85 |
+
| VAGUE_DATA | 15332 | 1624 | 0.40 | 0.2019 | 0.1078 | 0.1719 | 0.1405 |
|
| 86 |
|
| 87 |
</details>
|