Khazri Corpus — cleaned Azerbaijani text from more than 570 books and official legal texts, created for NLP research and language model development.
SOFTYU GROUP · AZERBAIJANI / AZ
Khazri Corpus
About the corpus
Khazri Corpus brings together literary, scientific, political and legal writing collected from openly available sources. Texts were cleaned and presented as sentences and short paragraphs. The corpus was used to train Khazri 3.
The corpus contains approximately 840K rows; the five listed subsets sum to 832,346 rows. The “default” configuration is not counted as a separate thematic subset.
PYTHON / HUGGING FACE
Start working with the corpus
Load a subset with the Hugging Face datasets library, or combine the four Parquet subsets.
pip install datasets
from datasets import load_dataset, concatenate_datasets
bedii = load_dataset("softyugroup/khazri-corpus", "bedii", split="train")
print(bedii[0]["text"])
subsets = ["bedii", "elmi", "siyaset", "vergi"]
corpus = concatenate_datasets([
load_dataset("softyugroup/khazri-corpus", name, split="train")
for name in subsets
])
This code combines four Parquet subsets (824,645 rows). The Civil Code is a separate JSONL file in mulk-mecelle/, not a named load_dataset configuration.
This corpus is released under CC BY-NC-ND 4.0: non-commercial sharing with attribution; redistribution of modified versions is not permitted. Refer to the full license terms when using the dataset.
Citation
@misc{khazri_corpus,
title = {Khazri Corpus: A Clean Azerbaijani Text Corpus},
author = {SoftYu Group},
howpublished = {\url{https://huggingface.co/datasets/softyugroup/khazri-corpus}},
note = {Hugging Face dataset}
}