CoolFace
Modelpublic

Tudorx95/NER_Economic_Political

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes2downloads
Model Card

GLiNER Fine-tuned for Political & Economic NER

Fine-tuned version of `urchade/gliner_small-v2.1` on a custom politico-economic NER dataset. Trained to recognize 11 entity types.

Entity types

POLITICIAN, POLITICAL_PARTY, POLITICAL_ORG, FINANCIAL_ORG, ECONOMIC_INDICATOR, POLICY, LEGISLATION, MARKET_EVENT, CURRENCY, TRADE_AGREEMENT, GPE

Performance

Test set: 2122 examples. Evaluation mode: ent_type (label match, ignoring exact boundaries).

Global (micro-averaged):

  • —Precision: 0.6811
  • —Recall: 0.9094
  • —F1: 0.7789

Per label:

LabelPrecisionRecallF1
POLITICIAN0.6030.9320.732
POLITICAL_PARTY0.7500.9640.843
POLITICAL_ORG0.3240.4970.392
FINANCIAL_ORG0.2570.4710.332
ECONOMIC_INDICATOR0.2941.0000.455
POLICY0.1110.2500.154
LEGISLATION0.2381.0000.385
MARKET_EVENT0.1880.7100.297
CURRENCY0.0940.4000.153
TRADE_AGREEMENT0.1220.3570.182
GPE0.8420.9710.901

Usage

python
from gliner import GLiNER

model = GLiNER.from_pretrained("Tudorx95/NER_Economic_Political")
labels = ["POLITICIAN", "POLITICAL_PARTY", "POLITICAL_ORG", "FINANCIAL_ORG",
          "ECONOMIC_INDICATOR", "POLICY", "LEGISLATION", "MARKET_EVENT",
          "CURRENCY", "TRADE_AGREEMENT", "GPE"]

text = "The Federal Reserve raised rates after President Biden signed the new bill."
entities = model.predict_entities(text, labels, threshold=0.5)
for e in entities:
    print(e["text"], "->", e["label"])

Training details

  • —Base model: urchade/gliner_small-v2.1
  • —Training examples: 5747
  • —Validation examples: 1228
  • —Epochs: 10
  • —Batch size: 8
  • —Learning rate: 3e-06