Downloads · 30 days
33
100% of all-time downloads
DS4AI-UPB/span-detector-ro
span-detector-ro is a token classification model from DS4AI-UPB. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
Dragoș Mitruț Vasile · Elena-Simona Apostol · Stefan-Adrian Toma · Adrian Paschke · Ciprian-Octavian Truică
Downloads · 30 days
33
100% of all-time downloads
All-time downloads
33
Public
Parameters
559M
6.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
From the Hugging Face model README
Dragoș Mitruț Vasile · Elena-Simona Apostol · Stefan-Adrian Toma · Adrian Paschke · Ciprian-Octavian Truică
A token-classification model (FacebookAI/xlm-roberta-large, 560M) that tags the two entity spans e1 and e2 in a plain Romanian sentence, using a five-label BIO scheme (O, B-E1, I-E1, B-E2, I-E2). It is the first stage of the end-to-end pipeline baseline: its predicted spans are wrapped in entity markers and passed to the relation classifier (DS4AI-UPB/xlmr-large-ro-re).
The SemEval-2010 Task 8 entities are common nominals, not named entities, so an off-the-shelf NER model does not transfer — this detector is trained on the task's own spans instead.
| Metric | Value |
|---|---|
| Span F1-Score | 0.869 |
| Precision | 0.85 |
| Recall | 0.89 |
FacebookAI/xlm-roberta-largefrom transformers import AutoModelForTokenClassification, AutoTokenizer
tok = AutoTokenizer.from_pretrained("DS4AI-UPB/span-detector-ro")
model = AutoModelForTokenClassification.from_pretrained("DS4AI-UPB/span-detector-ro")
The full pipeline (span detection then relation classification) is in pipeline_e2e.py in the code repository.
@misc{vasile2026crosslingual,
title = {Cross-lingual Relation Extraction with Large Language Models: Zero-Shot, Few-Shot, and Fine-Tuned Evaluation on Romanian},
author = {Vasile, Drago\c{s}-Mitru\c{t} and Apostol, Elena-Simona and Toma, \c{S}tefan-Adrian and Paschke, Adrian and Truic\u{a}, Ciprian-Octavian},
year = {2026},
note = {Preprint}
}