Instructions to use tseidl/eu-acquis-regulated-actor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tseidl/eu-acquis-regulated-actor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tseidl/eu-acquis-regulated-actor")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tseidl/eu-acquis-regulated-actor") model = AutoModelForSequenceClassification.from_pretrained("tseidl/eu-acquis-regulated-actor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
eu-acquis-regulated-actor
Whose behaviour an EU legislative article governs: eu_institutions, member_states, private_actors, individuals, other.
Fine-tuned ModernBERT-large encoder from the paper Mapping Europe's Digital Acquis (Seidl & Kosti, 2026). The model classifies individual provisions of EU regulations, directives, and decisions — recitals and (sub-)articles as extracted with eurlex-builder — and was trained on labels produced by a five-model LLM ensemble whose coding instructions were validated against two human coders.
Labels
eu_institutions, member_states, private_actors, individuals, other. Applies to: articles with deontic content (tone other than none).
Training
- Base model:
answerdotai/ModernBERT-large(ModernBertForSequenceClassification); max length at training 1024 tokens. - Training data: 20,727 provisions labelled by the LLM ensemble (majority vote of Qwen3-235B, Llama-3.3-70B, gpt-oss-120b, GPT-5.2, DeepSeek-V4 Pro); soft labels (per-class vote fractions); negative:positive ratio 12:1.
- Hyperparameters: learning rate 2e-05, weight decay 0.01, 5 epochs, batch size 4 × 8 accumulation.
- Saved 2026-06-06.
Evaluation
- Held-out distillation test (agreement with the ensemble's labels): F1 = 0.849.
- Against the human-coded validation set (n = 211, training items excluded by id): agreement 0.858, Krippendorff's α = 0.798.
- Same, additionally excluding validation items whose exact text recurs in the training pool (n = 207): α = 0.794.
- For reference: the LLM ensemble reaches α = 0.826 against the same coder; the two human coders agree at α = 0.889.
Full validation design, error rates at natural prevalence, temporal stability, prompt stability, and interpretability checks are in the paper's online appendix.
Intended use and limits
- Input: one provision of EU secondary legislation in English (the
textfield as produced by eurlex-builder). The model was trained on provisions of 50 or more characters; very long provisions were truncated at 1,024 tokens during training. - Scope: articles with deontic content (tone other than none). Applying it to other document types (communications, national law, case law) is untested.
- Classification error is documented but not zero; for aggregate analyses, see the paper's discussion of error rates and their correction.
Usage
from transformers import pipeline
clf = pipeline("text-classification", model="tseidl/eu-acquis-regulated-actor", truncation=True, max_length=1024)
clf("Member States shall ensure that all consumers have access to an adequate broadband internet access service at an affordable price.")
Citation
Seidl, T. & Kosti, N. (2026). Mapping Europe's Digital Acquis: A Granular History of EU Digital Policymaking. Preprint.
Corpus construction: eurlex-builder (https://github.com/tseidl/eurlex-builder; archived at https://doi.org/10.5281/zenodo.21496963).
Model card generated 2026-09-17 from the training metadata and the paper's validation results file.
- Downloads last month
- 7
Model tree for tseidl/eu-acquis-regulated-actor
Base model
answerdotai/ModernBERT-large