Downloads · 30 days
0
saidylive/newsintel-re
newsintel-re is a text classification model from saidylive. Use it when you need a label for a piece of text. It is set up for onnxruntime. The card lists the license as cc-by-nc-4.0.
Relation extraction over [E1]/[E2]-marked sentences (OCCURREDIN, HASDEATHCOUNT, …).
Downloads · 30 days
0
Access
Public
Updated Jul 20, 2026
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.onnx1.4 GB · 99%
From the Hugging Face model README
Relation extraction over [E1]/[E2]-marked sentences (OCCURRED_IN, HAS_DEATH_COUNT, …).
Part of NewsIntel AI — a CPU-deployable, LLM-free pipeline that extracts structured public-safety events (accidents, disasters, crimes) from Bangladeshi news in Bengali and English. This model is stage 5 · relations (19 types) of that chain:
document → relevance gate → event-type router → evidence selection
→ NER → relation extraction → knowledge graph → structured event JSON
| Base model | xlm-roberta-base |
| Task | re |
| Input | text |
| Max length | 256 |
| Format | ONNX INT8 (dynamic quantization), ~279 MB |
| Version | c3350e03a50db |
| Languages | Bengali (primary, ~96% of training corpus), English |
NO_RELATIONOCCURRED_INOCCURRED_ONINVOLVES_PERSONINVOLVES_ORGINVOLVES_VEHICLEHAS_DEATH_COUNTHAS_INJURY_COUNTHAS_DAMAGE_COUNTHAS_AFFECTED_COUNTHAS_CROPHAS_PRODUCTION_AMOUNTHAS_CRIME_TYPEHAS_DISASTER_TYPEARRESTED_BYREPORTED_BYLOCATED_INPART_OFALIAS_OFNone — this model emits raw scores; the caller ranks or thresholds.
mark head/tail [E1]/[E2]; relation = id2label[argmax(softmax(logits))]
These values also ship machine-readable in model_manifest.json, so a serving process can
consume the model without hardcoding anything.
| Metric | Value |
|---|---|
| Accuracy | 0.9393 |
| macro-F1 | 0.782 |
from huggingface_hub import snapshot_download
import onnxruntime as ort, numpy as np
from transformers import AutoTokenizer
d = snapshot_download("saidylive/newsintel-re", revision="c3350e03a50db",
allow_patterns=["model_int8.onnx", "*.json", "*.model"])
tok = AutoTokenizer.from_pretrained(d)
sess = ort.InferenceSession(f"{d}/model_int8.onnx", providers=["CPUExecutionProvider"])
enc = tok("সাভারে বাস-ট্রাকের সংঘর্ষে নিহত ২", return_tensors="np")
logits = sess.run(None, {k: v for k, v in enc.items()
if k in {i.name for i in sess.get_inputs()}})[0]
# decision rule (from model_manifest.json):
# mark head/tail [E1]/[E2]; relation = id2label[argmax(softmax(logits))]
Trained on the bd_eng_news_daily Kaggle corpus of Bangladeshi news (~713k articles,
~96% Bengali by character ratio). Labels are silver, not human-annotated: a teacher LLM
produced structured event annotations, which were distilled into these small models. No
manual annotation was performed at any stage.
This matters for how you read the metrics: they measure agreement with LLM-generated labels, not with human ground truth. There is no human-labelled evaluation set.
Released under cc-by-nc-4.0 — free to share and adapt for non-commercial purposes with attribution. Note that the training corpus consists of copyrighted news articles and the labels were LLM-distilled; downstream users are responsible for their own compliance.
@software{newsintel_ai,
title = {NewsIntel AI: distilled multilingual event extraction for Bangladeshi news},
author = {Md. Sheikh Saidy},
year = {2026},
url = {https://huggingface.co/saidylive/newsintel-re}
}