Downloads · 30 days
34
3% of all-time downloads
enesyila/ota-roberta-base-kadisicilleri
ota-roberta-base-kadisicilleri is a fill-mask model from enesyila. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
This is a fill-mask model for Ottoman Turkish. The model was finetuned on Ottoman Turkish court records (kadı sicilleri). Thus, it was optimized for legal/administrative texts (court records). The data consists of 15,…
Downloads · 30 days
34
3% of all-time downloads
All-time downloads
1.1K
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
This is a fill-mask model for Ottoman Turkish. The model was finetuned on Ottoman Turkish court records (kadı sicilleri). Thus, it was optimized for legal/administrative texts (court records). The data consists of 15,060,44 words and 26,260,597 tokens from 63,608 court records from Istanbul (1513-1813) and Diyarbakır (1654-1919).
Mask filling & completion of Ottoman Turkish sentences. It was specifically built to work with Ottoman Turkish court records.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
The training data does not align with IJMES transliteration system. To exemplify, the word ﻗﺎﺿﻰ was transliterated as kâdî, instead of how it appears in IJMES, ḳāḍī. Therefore, to use the model, not using IJMES-transliterated data is recommended. Yet, the characters â, î, ô, and û are present in the training data. So, there is no need to convert â into a to use this model properly.
Use the code below to get started with the model.
from transformers import AutoTokenizer, AutoModelForMaskedLM, pipeline
# 1. Load the finetuned model and tokenizer
model_name = "enesyila/ota-roberta-base-kadisicilleri"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForMaskedLM.from_pretrained(model_name)
# 2. Create a mask-filling pipeline
unmasker = pipeline("fill-mask", model=model, tokenizer=tokenizer)
# 3. Run it on an Ottoman-style sentence
sequence = "Mehmed <mask> mahkemeye geldi"
results = unmasker(sequence)
# 4. Print the top 5 predictions
for r in results:
print(f"{r['sequence']} (score: {r['score']:.4f})")
The data consists of 15,060,44 words and 26,260,597 tokens from 63,608 court records from Istanbul (1513-1813) and Diyarbakır (1654-1919). Data for the records from Istanbul can be found here and data from Diyarbakır is here.
Training regime: [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
Chunk-size: 512 tokens
Batching
per_device_train_batch_size=32per_device_eval_batch_size=64Optimizer & Schedule
Training schedule:
Evaluation loss: 0.4429 Perplexity: 1.56
If you use this model in your research, please cite:
@misc{xlm-roberta-base-ota-kadisicilleri,
author = {Yılandıloğlu, Enes},
title = {XLM-RoBERTa Base for Ottoman Turkish Court Records},
year = {2025},
publisher = {Hugging Face},
howpublished = {\\url{https://huggingface.co/enesyila/ota-roberta-base-kadisicilleri}}
}
## Model Card Authors [optional]
Enes Yılandiloğlu
## Model Card Contact
[email protected]