The dataset viewer is not available for this split.
Error code: TooBigContentError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
DhivehiNews-1M
A large-scale Dhivehi (ދިވެހި) news corpus for low-resource NLP.
Dhivehi is the Indo-Aryan language of the Maldives, written in the Thaana script. Like many languages with comparatively few public training resources, progress in retrieval, embeddings and language modelling for Dhivehi is limited by data availability. DhivehiNews-1M releases a single, documented CSV of nearly one million news articles to support open research on Thaana text.
This release is intended as one of the largest dedicated Dhivehi news corpora currently available for download in a simple tabular form. Size comparisons below use verified public figures from other datasets; we do not claim exclusivity or absolute primacy.
| Resource | Documents (reported) | Notes |
|---|---|---|
| DhivehiNews-1M (this dataset) | 978,856 | Measured from archive_articles_all.csv |
| d3b4g/dhivehi-corpus | 478,543 | Broader cleaned corpus (mostly news) |
| alakxender/dhivehi-news-corpus | 113,831 | Title/content news pairs |
| Dhivehi News Categories (Mendeley) | 6,000 | Manually categorised subset |
Dataset overview and objectives
Objective. Provide a reproducible, large Thaana news collection that researchers can stream or download for:
- pretraining and continued pretraining of language models,
- embedding / contrastive learning with headline–article pairs,
- semantic search, RAG and IR evaluation,
- tokenizer analysis for Thaana,
- summarisation and headline-related generation studies.
What is included. Sharded Parquet under data/train-*.parquet (converted from archive_articles_all.csv, ~3.47 GiB CSV on disk), with UTF-8/Thaana text preserved. README chart PNGs in assets/ are documentation only and are excluded from the dataset config.
What is not included. Human relevance labels, category annotations, train/validation/test splits, or publisher redistribution licences.
Dataset structure
| Field | Type | Description |
|---|---|---|
id |
string | Short article identifier (also appears in archive.mv URLs) |
url |
string | Canonical page on archive.mv when present |
external_url |
string | Publisher / external URL when present |
title |
string | Headline (typically Thaana) |
date |
string | Publication date as free text (often Dhivehi month names + year) |
source |
string | Attribution string from the CSV — mixed outlets and personal bylines |
content |
string | Article body |
There is a single logical split (train / full file). No official held-out split is defined; researchers should create their own.
Representative examples
Example 1 (id=RqZk6E, source=އަސުރު އޮންލައިން, date=01 ޖެނުއަރީ 2024)
- Title: ހުޅުމާލެ ދެކުނު ދާއިރާއަށް ނަހުލާ ވާދަ ކުރައްވަނީ
- Content (preview): ޖުމްހޫރީ ޕާޓީ (ޖޭޕީ)ގެ ޑެޕިއުޓީ ލީޑަރު އައިޝަތު ނަހުލާ، ރައްޔިތުންގެ މަޖިލިސް އިންތިޚާބުގައި ވާދަކުރައްވާނެކަން …
Example 2 (id=EWAExD, source=މިހާސް, date=01 ޖެނުއަރީ 2024)
- Title: އާދިއްތަ ދުވަހުގެ ވިއްސާރައިގައި މާލޭގެ ގެތަކަށް ލިބުނު ގެއްލުން ބަލަނީ
- Content (preview): އާދިއްތަ ދުވަހު (އިއްޔެ) ރާއްޖޭގެ މޫސުން ގޯސްވެ … މާލޭގެ ގޭގެއަށް ލިބުނު ގެއްލުންތައް …
Data sources and collection methodology
Documented from the file itself (verified):
- Rows include
urlvalues underhttps://archive.mv/dv/articles/…andexternal_urlvalues pointing at Maldivian news sites. - Text is predominantly Thaana (see script statistics).
- Dates are stored as human-readable strings (not ISO-8601).
Not independently re-verified in this card:
- The original crawl / aggregation pipeline, robots policies, or completeness of any single publisher.
- Whether every
external_urlremains live.
Treat the CSV as an archived news compilation useful for research, not as a statement of rights clearance from each publisher (see Licensing).
Cleaning and preprocessing (as released)
This Hub release ships the CSV as measured, without additional rewriting of article text.
For the statistics and charts in this card we applied only analysis-time normalisation:
- UTF-8 read with replacement on rare undecodable bytes,
- whitespace collapse when counting words / hashing duplicates,
- year extraction via the first
19xx/20xxmatch indate.
We did not remove near-duplicates, filter by length, or rewrite Thaana orthography for the published file.
Reproducible analysis code: scripts/analyze_dhivehi_news_1m.py in the companion research repository (when mirrored) and the numbers in stats.json.
Dataset statistics
Computed by streaming all 978,856 rows of archive_articles_all.csv (stats.json). Word = whitespace-separated unit after light normalisation. Subword tokens = google/embeddinggemma-2 tokenizer over title + "\n" + content (add_special_tokens=False).
Scale
| Metric | Value |
|---|---|
| Rows (articles) | 978,856 |
Unique id values |
978,713 |
| Unique normalised headlines | 877,826 |
| Disk size | 3.473 GiB (3,729,178,678 bytes) |
| Total content words | 197,898,291 |
| Total content characters | 1,853,982,787 |
| Total title words | 7,243,983 |
| Total EmbeddingGemma tokens | 1,197,564,689 (~1.20B) |
| HF size category | 100K<n<1M |
Article length (content words)
| Stat | Value |
|---|---|
| Mean | 202.2 |
| Median (P50) | 162 |
| Min / Max | 0 / 4,234 |
| P25 / P75 | 114 / 229 |
| P95 / P99 | 439 / 1,014 |
Headline length (title words)
| Stat | Value |
|---|---|
| Mean | 7.4 |
| Median | 7 |
| P25 / P75 / P95 | 6 / 9 / 11 |
Article length (EmbeddingGemma tokens, title+content)
| Stat | Value |
|---|---|
| Mean | 1,223.4 |
| Median (P50) | 991 |
| Min / Max | 0 / 22,041 |
| P25 / P75 | 714 / 1,384 |
| P95 / P99 | 2,579 / 5,866 |
Duplicates and missing values
| Metric | Value |
|---|---|
| Exact duplicate extra copies of body text | 67,861 (6.93% of rows) |
Duplicate body groups (MD5 of normalised content) |
57,724 |
Duplicate id rows |
143 |
Empty content / title / date / source |
383 / 272 / 264 / 6,823 |
Script composition (letter characters in title+content)
| Metric | Value |
|---|---|
| Thaana letter share | 98.87% |
| Non-Thaana letter share | 1.13% |
| Latin A–Z share | 0.86% |
Method: among Unicode alphabetic characters only, count Thaana (U+0780–U+07BF), basic Latin, and other letters. This estimates script mix, not language ID (code-switched names, Latin acronyms, etc. inflate the non-Thaana share slightly).
Attribution field and dates
| Metric | Value |
|---|---|
Unique source strings |
23,647 |
Rows with parseable year in date |
976,469 |
| Year range (parsed) | 2004–2024 |
source mixes outlet names and personal bylines; do not treat it as a clean publisher taxonomy without further mapping.
Intended applications
Why headline–article pairs matter
Each row pairs a short query-like string (title) with a longer document (content). That structure is directly useful for:
- Contrastive embedding learning (in-batch InfoNCE / CLIP-style text pairs),
- Dense retrieval fine-tuning (title as query, body as positive passage),
- Evaluation of zero-shot multilingual embedders on Thaana,
- RAG prototypes where headlines approximate user information needs.
Unlike synthetic query generation, titles are naturally occurring and aligned with real editorial content.
Research use cases
| Area | How this corpus helps |
|---|---|
| LLM pretraining | Large Thaana continuous text |
| Embedding fine-tuning | Title–body positives at scale |
| Contrastive learning | Naturally paired short/long text |
| Semantic search / IR | Document collection + query-like titles |
| RAG | Retrievable Maldivian news knowledge |
| Tokenizer R&D | Fertility / OOV studies on Thaana |
| Headline generation | Title as target, body as source |
| Summarisation | Long body → short title as weak supervision |
| Topic classification | After labelling or clustering |
| Multilingual / low-resource NLP | Under-served language with real media text |
Quick start
Downloading the files (LFS / Xet)
Large Parquet shards are stored with Hugging Face Xet / Git LFS.
If you git clone without LFS/Xet installed, you may only get tiny pointer files that look empty.
A healthy shard is tens of MB; a few-hundred-byte file is an LFS pointer, not the dataset.
Recommended — downloads the real data:
from datasets import load_dataset
ds = load_dataset("Lujain123/DhivehiNews-1M", split="train")
Or with the Hub CLI:
hf download Lujain123/DhivehiNews-1M --repo-type dataset
Git clone (needs LFS/Xet):
git lfs install
git clone https://huggingface.co/datasets/Lujain123/DhivehiNews-1M
Load from the Hub (Parquet shards)
from datasets import load_dataset
ds = load_dataset("Lujain123/DhivehiNews-1M", split="train")
print(ds) # expect ~978,856 rows, text columns
print(ds.features)
print(ds[0]["title"])
print(ds[0]["content"][:200])
Stream without downloading everything
from datasets import load_dataset
ds = load_dataset("Lujain123/DhivehiNews-1M", split="train", streaming=True)
for i, row in enumerate(ds):
print(row["id"], row["title"][:80])
if i >= 4:
break
Headline–article pairs for embedding research
from datasets import load_dataset
ds = load_dataset("Lujain123/DhivehiNews-1M", split="train", streaming=True)
def pairs(dataset, limit=10000):
n = 0
for row in dataset:
title = (row.get("title") or "").strip()
body = (row.get("content") or "").strip()
if not title or not body:
continue
yield {"query": title, "document": body, "id": row["id"]}
n += 1
if n >= limit:
break
batch = list(pairs(ds, limit=3))
print(batch[0]["query"])
print(batch[0]["document"][:160])
Known limitations and biases
- News-domain bias: political, social and event reporting will dominate over literary, conversational or technical registers.
- Attribution noise:
sourceis not a clean publisher ID. - Duplicates: ~6.9% of rows are extra exact copies of another row’s body; near-duplicates are not measured here.
- Dates: free-text Dhivehi dates; year parsing can miss edge cases.
- Empty fields: a small number of rows lack title/content/date; ~6.8k lack
source. - Rights: original articles remain copyrighted by publishers (see below).
- No gold IR labels in this release.
- Script ≠ language: Latin spans (names, acronyms) appear inside Thaana articles.
Copyright and licensing
Copyright in the original news articles remains with their respective publishers and copyright holders.
This dataset is a compilation / archive dump for research discovery. It is not released under Creative Commons or another open content licence for the article text, because redistributing third-party journalism under an open licence would require permissions that are not documented here.
| Layer | Status |
|---|---|
| Article text, headlines, publisher pages | Copyright of original rightsholders |
| This dataset card, analysis scripts, charts | See companion repo / author terms for original packaging code |
Hub license metadata |
other / copyrighted-news-content |
Recommended use: research, benchmarking and non-redistributive experimentation. If you need commercial reuse or republication of article text, obtain permission from the relevant publishers. Respect robots.txt and site terms if you extend collection yourself.
Citation
If you use DhivehiNews-1M, please cite:
@dataset{jaleel_dhivehinews1m_2026,
author = {Jaleel, Lujain},
title = {DhivehiNews-1M: A Large-Scale Dhivehi News Corpus},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/Lujain123/DhivehiNews-1M},
note = {978,856 articles; CSV dump with Thaana news text}
}
Related public resources
- d3b4g/dhivehi-corpus — 478,543 docs, CC-BY-4.0 cleaned corpus
- alakxender/dhivehi-news-corpus — 113,831 title/content pairs
- Dhivehi News Categories (Mendeley) — 6,000 labelled articles
Reproduction
python scripts/analyze_dhivehi_news_1m.py \
--csv archive_articles_all.csv \
--out-dir .hf_dataset_card \
--tokenizer google/embeddinggemma-2
Machine-readable metrics: stats.json.
- Downloads last month
- 84