๐Ÿง 
Model

Xlm Roberta Large French Legislative Cap V3

by poltextlab hf-model--poltextlab--xlm-roberta-large-french-legislative-cap-v3
Nexus Index
40.6 Top 100%
S: Semantic 50
A: Authority 0
P: Popularity 28
R: Recency 96
Q: Quality 50
Tech Context
Vital Performance
1.3K DL / 30D
0.0%
Audited 40.6 FNI Score
Tiny - Params
- Context
1.3K Downloads
Restricted CC License
Model Information Summary
Entity Passport
Registry ID hf-model--poltextlab--xlm-roberta-large-french-legislative-cap-v3
License CC-BY-4.0
Provider huggingface
๐Ÿ“œ

Cite this model

Academic & Research Attribution

BibTeX
@misc{hf_model__poltextlab__xlm_roberta_large_french_legislative_cap_v3,
  author = {poltextlab},
  title = {Xlm Roberta Large French Legislative Cap V3 Model},
  year = {2026},
  howpublished = {\url{https://huggingface.co/poltextlab/xlm-roberta-large-french-legislative-cap-v3}},
  note = {Accessed via Free2AITools Knowledge Fortress}
}
APA Style
poltextlab. (2026). Xlm Roberta Large French Legislative Cap V3 [Model]. Free2AITools. https://huggingface.co/poltextlab/xlm-roberta-large-french-legislative-cap-v3

๐Ÿ”ฌTechnical Deep Dive

Full Specifications [+]

Quick Commands

๐Ÿค— HF Download
huggingface-cli download poltextlab/xlm-roberta-large-french-legislative-cap-v3
๐Ÿ“ฆ Install Lib
pip install -U transformers

โš–๏ธ Nexus Index V2.0

40.6
TOP 100% SYSTEM IMPACT
Semantic (S) 50
Authority (A) 0
Popularity (P) 28
Recency (R) 96
Quality (Q) 50

๐Ÿ’ฌ Index Insight

FNI V2.0 for Xlm Roberta Large French Legislative Cap V3: Semantic (S:50), Authority (A:0), Popularity (P:28), Recency (R:96), Quality (Q:50).

Free2AITools Nexus Index

Verification Authority

Unbiased Data Node Refresh: VFS Live
---

๐Ÿš€ What's Next?

Technical Deep Dive

xlm-roberta-large-french-legislative-cap-v3

Model description

An xlm-roberta-large model fine-tuned on french training data containing legislative documents (bills, laws, motions, legislative decrees, hearings, resolutions) labeled with major topic codes from the Comparative Agendas Project.

We follow the master codebook of the Comparative Agendas Project, and all of our models use the same major topic codes.

How to use the model

python
from transformers import AutoTokenizer, pipeline

tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large")
pipe = pipeline(
    model="poltextlab/xlm-roberta-large-french-legislative-cap-v3",
    task="text-classification",
    tokenizer=tokenizer,
    use_fast=False,
    token=""
)

text = "We will place an immediate 6-month halt on the finance driven closure of beds and wards, and set up an independent audit of needs and facilities."
pipe(text)

The translation table from the model results to CAP codes is the following:

python
CAP_NUM_DICT = {
    0: 1,
    1: 2,
    2: 3,
    3: 4,
    4: 5,
    5: 6,
    6: 7,
    7: 8,
    8: 9,
    9: 10,
    10: 12,
    11: 13,
    12: 14,
    13: 15,
    14: 16,
    15: 17,
    16: 18,
    17: 19,
    18: 20,
    19: 21,
    20: 23,
    21: 999,
}

We have included a 999 label because our models are fine-tuned on training data containing the label 'None' in addition to the 21 CAP major policy topic codes, indicating that the given text contains no relevant policy content. We use the label 999 for these cases.

Gated access

Due to the gated access, you must pass the token parameter when loading the model. In earlier versions of the Transformers package, you may need to use the use_auth_token parameter instead.

Model performance

The model was evaluated on a test set of 1211 examples.
Model accuracy is 0.83.

label precision recall f1-score support
0 0.89 0.83 0.86 80
1 0.56 0.19 0.29 26
2 0.81 0.95 0.88 37
3 0.86 0.95 0.90 39
4 0.78 0.84 0.81 43
5 0.74 0.94 0.83 18
6 0.56 0.29 0.38 17
7 0.91 0.88 0.90 49
8 0.79 0.93 0.86 29
9 0.90 0.93 0.92 76
10 0.72 0.90 0.80 99
11 0.77 0.82 0.79 33
12 0.81 0.74 0.78 35
13 0.81 0.81 0.81 85
14 0.86 0.80 0.83 46
15 0.84 0.73 0.78 37
16 0.92 0.77 0.84 47
17 0.77 0.78 0.77 139
18 0.90 0.89 0.89 244
19 0.00 0.00 0.00 3
20 0.80 0.69 0.74 35
21 1.00 0.95 0.92 57
accuracy 0.83 0.83 0.83 0.83
macro avg 0.82 0.73 0.75 2627
weighted avg 0.83 0.83 0.83 2627

Fine-tuning procedure

This model was fine-tuned with the following key hyperparameters:

  • Number of Training Epochs: 10
  • Batch Size: 8
  • Learning Rate: 5e-06
  • Early Stopping: enabled with a patience of 2 epochs

Inference platform

This model is used by the CAP Babel Machine, an open-source and free natural language processing tool, designed to simplify and speed up projects for comparative research.

Cooperation

Model performance can be significantly improved by extending our training sets. We appreciate every submission of CAP-coded corpora (of any domain and language) at poltextlab{at}poltextlab{dot}com or by using the CAP Babel Machine.

Reference

Sebล‘k, M., Mรกtรฉ, ร., Ring, O., Kovรกcs, V., & Lehoczki, R. (2024). Leveraging Open Large Language Models for Multilingual Policy Topic Classification: The Babel Machine Approach. Social Science Computer Review, 0(0). https://doi.org/10.1177/08944393241259434

Debugging and issues

This architecture uses the sentencepiece tokenizer. In order to use the model before transformers==4.27 you need to install it manually.

If you encounter a RuntimeError when loading the model using the from_pretrained() method, adding ignore_mismatched_sizes=True should solve the issue.

โš ๏ธ Incomplete Data

Some information about this model is not available. Use with Caution - Verify details from the original source before relying on this data.

View Original Source โ†’

๐Ÿ“ Limitations & Considerations

  • โ€ข Benchmark scores may vary based on evaluation methodology and hardware configuration.
  • โ€ข VRAM requirements are estimates; actual usage depends on quantization and batch size.
  • โ€ข FNI scores are relative rankings and may change as new models are added.
  • โš  License Unknown: Verify licensing terms before commercial use.

Social Proof

HuggingFace Hub
1.3KDownloads
๐Ÿ”„ Daily sync (03:00 UTC)

AI Summary: Based on Hugging Face metadata. Not a recommendation.

๐Ÿ“Š FNI Methodology ๐Ÿ“š Knowledge Baseโ„น๏ธ Verify with original source

๐Ÿ›ก๏ธ Model Transparency Report

Technical metadata sourced from upstream repositories.

Open Metadata

๐Ÿ†” Identity & Source

id
hf-model--poltextlab--xlm-roberta-large-french-legislative-cap-v3
slug
poltextlab--xlm-roberta-large-french-legislative-cap-v3
source
huggingface
author
poltextlab
license
CC-BY-4.0
tags
transformers, pytorch, xlm-roberta, text-classification, fr, license:cc-by-4.0, endpoints_compatible, region:us

โš™๏ธ Technical Specs

architecture
null
params billions
null
context length
null
pipeline tag
text-classification

๐Ÿ“Š Engagement & Metrics

downloads
1,315
stars
0
forks
0

Data indexed from public sources. Updated daily.