AI SeedbankHelp preserve open and free AI for humanity's future

← All models

dascim_juribert-base

dascim · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


language: fr license: mit pipeline_tag: fill-mask library_name: transformers

JuriBERT: A Masked-Language Model Adaptation for French Legal Text

Introduction

JuriBERT is a set of BERT models (tiny, mini, small and base) pre-trained from scratch on French legal-domain specific corpora. JuriBERT models are pretrained on 6.3GB of legal french raw text from two different sources: the first dataset is crawled from Légifrance and the other one consists of anonymized court’s decisions and the pleadings from the Court of Cassation (mémoires ampliatifs). The latter contains more than 100k long documents from different court cases.

It is now on Hugging Face in four different versions with varying number of parameters.

JuriBERT Pre-trained models

Model #params Architecture
dascim/juribert-tiny 6M Tiny (L=2, H=128, A=2)
dascim/juribert-mini 15M Mini (L=4, H=256, A=4)
dascim/juribert-small 42M Small (L=6, H=512, A=8)
dascim/juribert-base 110M Base (L=12, H=768, A=12)

JuriBERT Usage

Load JuriBERT and its sub-word tokenizer :
from transformers import AutoModel, AutoTokenizer

# You can replace "juribert-base" with any other model from the table, e.g. "dascim/juribert-small".
tokenizer = AutoTokenizer.from_pretrained("dascim/juribert-base")
juribert = AutoModel.from_pretrained("dascim/juribert-base")

juribert.eval()  # disable dropout (or leave in train mode to finetune)
Filling masks using pipeline
from transformers import pipeline 

juribert_fill_mask  = pipeline("fill-mask", model="dascim/juribert-base", tokenizer="dascim/juribert-base")
results = juribert_fill_mask("la chambre <mask> est une chambre de la cour de cassation.")
# results
# [{'score': 0.3455437421798706, 'token': 579, 'token_str': ' civile', 'sequence': 'la chambre civile est une chambre de la cour de cassation.'}, 
# {'score': 0.13046401739120483, 'token': 397, 'token_str': ' qui', 'sequence': 'la chambre qui est une chambre de la cour de cassation.'}, 
# {'score': 0.12387491017580032, 'token': 1060, 'token_str': ' sociale', 'sequence': 'la chambre sociale est une chambre de la cour de cassation.'}, 
# {'score': 0.05491165071725845, 'token': 266, 'token_str': ' c', 'sequence': 'la chambre c est une chambre de la cour de cassation.'},
# {'score': 0.04244831204414368, 'token': 2421, 'token_str': ' commerciale', 'sequence': 'la chambre commerciale est une chambre de la cour de cassation.'}]
Extract contextual embedding features from JuriBERT output
encoded_sentence = tokenizer.encode("Les articles 21 et 22 de la présente annexe sont applicables au titre V de la loi du 1er juin 1924 mettant en vigueur la législation civile française dans les départements du Bas-Rhin, du Haut-Rhin et de la Moselle, et relatif à l'exécution forcée sur les immeubles, à la procédure en matière de purge des hypothèques et à la procédure d'ordre.", return_tensors='pt')

embeddings = juribert(encoded_sentence).last_hidden_state
print(embeddings)
# tensor([[[-0.5490, -1.4505, -0.6244,  ..., -0.9739,  0.4767, -0.0655],
#          [ 0.6415, -1.4368,  0.8708,  ..., -0.4093,  0.6691,  0.7238],
#          [-0.2195, -0.1235,  0.2674,  ...,  0.5372, -0.4903,  0.5960],
#          ...,
#          [-1.4168, -1.3238,  1.1748,  ...,  0.7590,  1.0338, -0.4865],
#          [-0.5240, -0.7168,  0.8667,  ..., -0.5848,  1.0086, -1.3153],
#          [ 0.2743, -0.3438,  1.1101,  ..., -0.5587,  0.0830, -0.3144]]],
#        grad_fn=<NativeLayerNormBackward0>)

Authors

JuriBERT was trained and evaluated at École Polytechnique in collaboration with HEC Paris by Stella Douka, Hadi Abdine, Mihcalis Vazirgiannis, Rajaa El Hamdani and David Restrepo Amariles.

Citation

If you use our work, please cite:

@inproceedings{douka-etal-2021-juribert,
         title = "{J}uri{BERT}: A Masked-Language Model Adaptation for {F}rench Legal Text",
         author="Douka, Stella and Abdine, Hadi and Vazirgiannis, Michalis and El Hamdani, Rajaa and Restrepo Amariles, David",
         booktitle="Proceedings of the Natural Legal Language Processing Workshop 2021",
         month=nov,
         year="2021",
         address = "Punta Cana, Dominican Republic",
         publisher = "Association for Computational Linguistics",
         url = "https://aclanthology.org/2021.nllp-1.9",
         pages = "95--101",
         }

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:9b5044f0feef7855491300428697eef97ce30c72&dn=dascim_juribert-base

Open magnet in torrent client · infohash 9b5044f0feef7855491300428697eef97ce30c72

Files & hashes

PathSizesha1sha256
README.md4.6 KB (4,661 B)bf9b48c20ea82d098ad45f24b88337bd6a4ae5c7ed8136e915cdb80ddd2380256995f866c45f529a09f1a9f61ab7fb2fcf283596
config.json697 B (697 B)679ac6d1dadf79bd8ced04359c7a63d55719b6344bb8505fecf70ee19d7c7aea1b0fedacfddc82080bffdf4de9bfa11c33202e2a
generation_config.json90 B (90 B)0786a9f4dc0de68ee18cbf78399931b05fbefee7bf1ba320993168b0d6ee5ff170df2108454d239b28eaac5948d30ee6993cccc1
merges.txt335.7 KB (343,715 B)c6f28550296694bfdeb3bfc823142f10ed2c3b3044911bec1bb37d6d89889b37be1149337e24503acd4374ba5e0c42119c8701b8
model.safetensors422.1 MB (442,624,152 B)10041f4abcb4cacda94614114a23f75b561ff0fd069ee172ecb98b7bffe0ab9eb9b7f943e4e8aa73d298c04e01cd1cd20a94b11f
special_tokens_map.json958 B (958 B)14f7c9ed7b0bde6d23ee7b6a24ac2996789d1a0bf23c8e6099631c233c16d9bf8dab198f610826cdd1b358f270f6d55c1863e857
tokenizer.json1.4 MB (1,444,704 B)9b78a9ef57dff7b1547987791a191d877aaa097b35bb0fecd672454d62b940726ab1e6b403d5951c698de4956e66fc6d2eb32022
tokenizer_config.json1.2 KB (1,239 B)c671e5a59f1f778c3892fa26ff790434e4d37418f3702f8051274982fe5e1de7410cedd0d59267b10af047a66041bdb0969e98a9
vocab.json544.5 KB (557,601 B)5d1568b85cbddb2e2bb473fdf2cd5a6b767c7ab5604c5638a17f1e46a2fa8062d019d8209ae2dc6bd2d275e057cb0999109580b0

Cite this release

Canonical URL
https://aiseedbank.org/models/dascim_juribert-base/
Slug
dascim_juribert-base
Infohash
9b5044f0feef7855491300428697eef97ce30c72
License
mit
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: dascim_juribert-base.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorydascim/juribert-base
Revision (pinned)735b7d1dffc4bd93b78dac1aff6bff448e70c06c
Fetched at2026-09-03T21:25:37Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T21:25:44Z

mit424.4 MB (444,977,817 bytes)transformerssafetensorsbertfill-maskendpoints_compatible1 language (fr)paper: 2110.01485