Views
No views yet
fastino/gliner2-base-v1 to pull casualty
figures from disaster news text — binding each number to its role (dead / injured /
missing) amid distractor numbers (dates, magnitudes, displacement counts). It is the
extraction front-end for a document-stream event tracker that estimates a disaster's
evolving toll over time; the task it solves is number-to-role binding in multi-fact prose,
which a surface parser cannot.1from gliner2 import GLiNER2, Schema
2
3ex = GLiNER2.from_pretrained("whr778/gliner2-base-v1-casualty")
4schema = (Schema().structure("casualty_report")
5 .field("dead", dtype="str", description="number of people killed or confirmed dead")
6 .field("injured", dtype="str", description="number of people injured or hurt")
7 .field("missing", dtype="str", description="number of people missing or unaccounted for"))
8
9ex.extract(
10 "Officials say at least 40 were killed and about 300 injured after the "
11 "magnitude-6.8 quake; roughly 2,000 people have been displaced.",
12 schema,
13)
14# {"casualty_report": [{"dead": "40", "injured": "300", "missing": null}]}dead=40 and injured=300 (not the magnitude 6.8 or the 2,000 displaced), and
correctly returns null for the unmentioned missing role.| metric | zero-shot base | this model |
|---|---|---|
| role precision | 0.627 | 0.914 |
| role recall | 0.906 | 0.965 |
| value exact (number binding) | 0.991 | 1.000 |
missing) from 0.458 to
0.122.casualty_report structure examples (val 1,303 / test 1,038) built
from synthetic disaster-news streams realized with claude-sonnet-5: each report snippet
states several roles' exact figures with realistic hedging ("at least", "feared", "hundreds")
plus distractor numbers (dates, magnitudes, displacement counts). Deterministic generator; no
real personal data. 8 epochs, batch 16×2, fp16, ~35 min on 1× A100.source field is unreliable. The model favors numeric spans, so a source field
is often filled with a number rather than the reporting entity — use dead/injured/
missing; treat source as best-effort.fastino/gliner2-base-v1; training data is synthetic (generated for this
project). Effective license: unverified — review the base-model terms before redistribution
or commercial use.