Token Classification
GLiNER2
Safetensors
English
extractor
information-extraction
named-entity-recognition
relation-extraction
event-extraction
text-classification
Instructions to use whr778/gliner2-large-v1-wikievents with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use whr778/gliner2-large-v1-wikievents with GLiNER2:
from gliner2 import GLiNER2 model = GLiNER2.from_pretrained("whr778/gliner2-large-v1-wikievents") # 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
Add model card as README
Browse files
README.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: gliner2
|
| 3 |
+
license: other
|
| 4 |
+
license_name: unverified-review-required
|
| 5 |
+
base_model: fastino/gliner2-large-v1
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- gliner2
|
| 10 |
+
- information-extraction
|
| 11 |
+
- named-entity-recognition
|
| 12 |
+
- relation-extraction
|
| 13 |
+
- event-extraction
|
| 14 |
+
- text-classification
|
| 15 |
+
metrics:
|
| 16 |
+
- f1
|
| 17 |
+
- precision
|
| 18 |
+
- recall
|
| 19 |
+
pipeline_tag: token-classification
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# gliner2-large-v1_wikievents
|
| 23 |
+
|
| 24 |
+
A [GLiNER2](https://github.com/fastino-ai/GLiNER2) multi-task information-extraction model (entities, relations, events, and classification) fine-tuned from `fastino/gliner2-large-v1`.
|
| 25 |
+
|
| 26 |
+
## β οΈ License at a glance
|
| 27 |
+
|
| 28 |
+
- **Effective license:** Unverified β review required
|
| 29 |
+
- **Commercial use:** Unverified
|
| 30 |
+
- **All dataset licenses verified:** No
|
| 31 |
+
|
| 32 |
+
See [License](#license) for the full determination and per-dataset terms.
|
| 33 |
+
|
| 34 |
+
## Model details
|
| 35 |
+
|
| 36 |
+
- **Base model:** [`fastino/gliner2-large-v1`](https://huggingface.co/fastino/gliner2-large-v1)
|
| 37 |
+
- **Library:** `gliner2`
|
| 38 |
+
- **Tasks:** entity, relation, event, and classification extraction
|
| 39 |
+
- **Experiment:** `gliner2-large-v1_wikievents`
|
| 40 |
+
|
| 41 |
+
## Training data
|
| 42 |
+
|
| 43 |
+
**1** dataset used for this run. 206 training records (val: 20, test: 20).
|
| 44 |
+
|
| 45 |
+
| Dataset | Task(s) | Train | Val | Test | Language | License | Source |
|
| 46 |
+
|---|---|--:|--:|--:|---|---|---|
|
| 47 |
+
| WikiEvents | NER + event extraction | 206 | 20 | 20 | en | see source | [link](https://github.com/raspberryice/gen-arg) |
|
| 48 |
+
|
| 49 |
+
**Dataset notes**
|
| 50 |
+
|
| 51 |
+
- **WikiEvents** β KAIROS-ontology event extraction co-trained with typed entity mentions; 49 event types, 57 argument roles.
|
| 52 |
+
|
| 53 |
+
## Training procedure
|
| 54 |
+
|
| 55 |
+
| Setting | Value |
|
| 56 |
+
|---|---|
|
| 57 |
+
| Trained on | 2026-07-20 |
|
| 58 |
+
| Duration | 12m 8s |
|
| 59 |
+
| Throughput | 10.3 samples/s |
|
| 60 |
+
| Epochs | 15 |
|
| 61 |
+
| Batch size | 4 (Γ 8 grad-accum) |
|
| 62 |
+
| Encoder LR | 1e-05 |
|
| 63 |
+
| Task-head LR | 0.0003 |
|
| 64 |
+
| Weight decay | 0.01 |
|
| 65 |
+
| Scheduler | cosine_restarts (warmup 0.05) |
|
| 66 |
+
| Precision | bf16 |
|
| 67 |
+
| Max grad norm | 1.0 |
|
| 68 |
+
| Best-checkpoint metric | eval_event_strict_micro_f1 |
|
| 69 |
+
| Seed | 42 |
|
| 70 |
+
|
| 71 |
+
## Evaluation
|
| 72 |
+
|
| 73 |
+
Decision threshold: **0.5** (config default).
|
| 74 |
+
|
| 75 |
+
### Blind test (held-out test splits)
|
| 76 |
+
|
| 77 |
+
Micro precision / recall / F1, strict β relaxed.
|
| 78 |
+
|
| 79 |
+
| Category | Precision | Recall | F1 | Support |
|
| 80 |
+
|---|--:|--:|--:|--:|
|
| 81 |
+
| entity | 0.767 β 0.803 | 0.818 β 0.857 | 0.792 β 0.829 | 1602 |
|
| 82 |
+
| event_type | 1.000 β 1.000 | 0.926 β 0.926 | 0.962 β 0.962 | 122 |
|
| 83 |
+
| event_trigger | 0.499 β 0.510 | 0.703 β 0.720 | 0.583 β 0.597 | 239 |
|
| 84 |
+
| event_argument | 0.114 β 0.455 | 0.124 β 0.479 | 0.119 β 0.467 | 515 |
|
| 85 |
+
| event | 0.342 β 0.539 | 0.394 β 0.613 | 0.366 β 0.574 | 876 |
|
| 86 |
+
|
| 87 |
+
### Best checkpoint (validation)
|
| 88 |
+
|
| 89 |
+
Micro precision / recall / F1, strict β relaxed.
|
| 90 |
+
|
| 91 |
+
| Category | Precision | Recall | F1 | Support |
|
| 92 |
+
|---|--:|--:|--:|--:|
|
| 93 |
+
| entity | 0.736 β 0.789 | 0.738 β 0.792 | 0.737 β 0.790 | 2519 |
|
| 94 |
+
| event_type | 1.000 β 1.000 | 0.717 β 0.717 | 0.835 β 0.835 | 276 |
|
| 95 |
+
| event_trigger | 0.777 β 0.801 | 0.487 β 0.502 | 0.599 β 0.617 | 464 |
|
| 96 |
+
| event_argument | 0.270 β 0.644 | 0.156 β 0.393 | 0.198 β 0.488 | 621 |
|
| 97 |
+
| event | 0.614 β 0.782 | 0.383 β 0.500 | 0.472 β 0.610 | 1361 |
|
| 98 |
+
|
| 99 |
+
## License
|
| 100 |
+
|
| 101 |
+
**Effective license: Unverified β review required.** This model is a derivative of its base model and every training dataset, so the most restrictive term across all of them governs the whole model.
|
| 102 |
+
|
| 103 |
+
- **Commercial use:** Unverified
|
| 104 |
+
- **Share-alike obligation:** No
|
| 105 |
+
- **All licenses verified:** No
|
| 106 |
+
- **Base model:** gliner2-large-v1 β see model card
|
| 107 |
+
|
| 108 |
+
**Unverified β verify the upstream terms before redistribution**
|
| 109 |
+
- WikiEvents (see source)
|
| 110 |
+
- gliner2-large-v1 (see model card)
|
| 111 |
+
|
| 112 |
+
> License strings are copied verbatim from each dataset's card/source and from `tools/train/dataset_registry.yaml`. "see card"/"see source"/"other" mean the upstream declares no clear license β treat as unverified. This summary is informational, not legal advice; confirm terms before redistribution or commercial use.
|
| 113 |
+
|
| 114 |
+
## Citation
|
| 115 |
+
|
| 116 |
+
If you use this model, please cite GLiNER2 and the underlying datasets (linked in [Training data](#training-data)).
|
| 117 |
+
|
| 118 |
+
---
|
| 119 |
+
_Model card generated automatically at the end of training (2026-07-20)._
|