Downloads · 30 days
0
dariast/span-identification-adapter
span-identification-adapter is a machine learning model from dariast. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This adapter was trained for span identification in Ukrainian news text.
Downloads · 30 days
0
Access
Public
Updated Jul 5, 2025
Repo size
21.6 MB
Likes
0
Public
Click a slice to open those files.
.bin7.2 MB · 100%
From the Hugging Face model README
This adapter was trained for span identification in Ukrainian news text.
from adapters import AutoAdapterModel
# Load base model
model = AutoAdapterModel.from_pretrained("xlm-roberta-base")
# Load this adapter
adapter_name = model.load_adapter("dariast/span-identification-adapter", source="hf")
# Add classification head (if not already present)
model.add_tagging_head(
adapter_name,
num_labels=2,
id2label={0: "NON-SPAN", 1: "SPAN"}
)
# Activate adapter
model.set_active_adapters(adapter_name)