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
| library_name: gliner2 | |
| license: other | |
| license_name: unverified-review-required | |
| base_model: fastino/gliner2-large-v1 | |
| language: | |
| - en | |
| tags: | |
| - gliner2 | |
| - information-extraction | |
| - named-entity-recognition | |
| - relation-extraction | |
| - event-extraction | |
| - text-classification | |
| metrics: | |
| - f1 | |
| - precision | |
| - recall | |
| pipeline_tag: token-classification | |
| # gliner2-large-v1_wikievents | |
| 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`. | |
| ## β οΈ License at a glance | |
| - **Effective license:** Unverified β review required | |
| - **Commercial use:** Unverified | |
| - **All dataset licenses verified:** No | |
| See [License](#license) for the full determination and per-dataset terms. | |
| ## Model details | |
| - **Base model:** [`fastino/gliner2-large-v1`](https://huggingface.co/fastino/gliner2-large-v1) | |
| - **Library:** `gliner2` | |
| - **Tasks:** entity, relation, event, and classification extraction | |
| - **Experiment:** `gliner2-large-v1_wikievents` | |
| ## Training data | |
| **1** dataset used for this run. 206 training records (val: 20, test: 20). | |
| | Dataset | Task(s) | Train | Val | Test | Language | License | Source | | |
| |---|---|--:|--:|--:|---|---|---| | |
| | WikiEvents | NER + event extraction | 206 | 20 | 20 | en | see source | [link](https://github.com/raspberryice/gen-arg) | | |
| **Dataset notes** | |
| - **WikiEvents** β KAIROS-ontology event extraction co-trained with typed entity mentions; 49 event types, 57 argument roles. | |
| ## Training procedure | |
| | Setting | Value | | |
| |---|---| | |
| | Trained on | 2026-07-20 | | |
| | Duration | 12m 8s | | |
| | Throughput | 10.3 samples/s | | |
| | Epochs | 15 | | |
| | Batch size | 4 (Γ 8 grad-accum) | | |
| | Encoder LR | 1e-05 | | |
| | Task-head LR | 0.0003 | | |
| | Weight decay | 0.01 | | |
| | Scheduler | cosine_restarts (warmup 0.05) | | |
| | Precision | bf16 | | |
| | Max grad norm | 1.0 | | |
| | Best-checkpoint metric | eval_event_strict_micro_f1 | | |
| | Seed | 42 | | |
| ## Evaluation | |
| Decision threshold: **0.5** (config default). | |
| ### Blind test (held-out test splits) | |
| Micro precision / recall / F1, strict β relaxed. | |
| | Category | Precision | Recall | F1 | Support | | |
| |---|--:|--:|--:|--:| | |
| | entity | 0.767 β 0.803 | 0.818 β 0.857 | 0.792 β 0.829 | 1602 | | |
| | event_type | 1.000 β 1.000 | 0.926 β 0.926 | 0.962 β 0.962 | 122 | | |
| | event_trigger | 0.499 β 0.510 | 0.703 β 0.720 | 0.583 β 0.597 | 239 | | |
| | event_argument | 0.114 β 0.455 | 0.124 β 0.479 | 0.119 β 0.467 | 515 | | |
| | event | 0.342 β 0.539 | 0.394 β 0.613 | 0.366 β 0.574 | 876 | | |
| ### Best checkpoint (validation) | |
| Micro precision / recall / F1, strict β relaxed. | |
| | Category | Precision | Recall | F1 | Support | | |
| |---|--:|--:|--:|--:| | |
| | entity | 0.736 β 0.789 | 0.738 β 0.792 | 0.737 β 0.790 | 2519 | | |
| | event_type | 1.000 β 1.000 | 0.717 β 0.717 | 0.835 β 0.835 | 276 | | |
| | event_trigger | 0.777 β 0.801 | 0.487 β 0.502 | 0.599 β 0.617 | 464 | | |
| | event_argument | 0.270 β 0.644 | 0.156 β 0.393 | 0.198 β 0.488 | 621 | | |
| | event | 0.614 β 0.782 | 0.383 β 0.500 | 0.472 β 0.610 | 1361 | | |
| ## License | |
| **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. | |
| - **Commercial use:** Unverified | |
| - **Share-alike obligation:** No | |
| - **All licenses verified:** No | |
| - **Base model:** gliner2-large-v1 β see model card | |
| **Unverified β verify the upstream terms before redistribution** | |
| - WikiEvents (see source) | |
| - gliner2-large-v1 (see model card) | |
| > 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. | |
| ## Citation | |
| If you use this model, please cite GLiNER2 and the underlying datasets (linked in [Training data](#training-data)). | |
| --- | |
| _Model card generated automatically at the end of training (2026-07-20)._ | |