The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: ArrowInvalid
Message: Failed to parse string: '' as a scalar of type timestamp[s]
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2312, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2152, in cast_array_to_feature
return array_cast(
array,
...<2 lines>...
allow_decimal_to_str=allow_decimal_to_str,
)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2015, in array_cast
return array.cast(pa_type)
~~~~~~~~~~^^^^^^^^^
File "pyarrow/array.pxi", line 1147, in pyarrow.lib.Array.cast
File "/usr/local/lib/python3.14/site-packages/pyarrow/compute.py", line 412, in cast
return call_function("cast", [arr], options, memory_pool)
File "pyarrow/_compute.pyx", line 604, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 399, in pyarrow._compute.Function.call
result = GetResultValue(
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
return check_status(status)
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: Failed to parse string: '' as a scalar of type timestamp[s]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
doc_id string | text string | lang string | source string | source_type string | synthetic bool | license string | origin_id string | url string | title string | date_collected timestamp[s] | word_count int64 | char_count int64 | script_ratio float64 | cleaning unknown | scores dict | dup_cluster int64 | dup_cluster_size int64 | split_key string | split string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
as:wikipedia:1030 | মুম্বাই (পূৰ্বতে বম্বে বা বোম্বাই, . ) ভাৰতৰ অন্তৰ্ভুক্ত মহাৰাষ্ট্ৰ ৰাজ্যৰ ৰাজধানী। মুম্বাই প্ৰায় ১ কোটি ৪০ লাখ মানুহৰ বাসস্থান। মুম্বাইক ভাৰতৰ অৰ্থনৈতিক কেন্দ্ৰবিন্দু বুলি কোৱা হয়, কাৰণ ভাৰতীয় ৰিজাৰ্ভ বেংক আৰু বম্বে ষ্টক এক্সচেঞ্জকে আদি কৰি বহু অৰ্থনৈতিক প্ৰতিষ্ঠানৰ কেন্দ্ৰীয় কাৰ্যালয় এই নগৰত অৱস্থিত। তদুপৰি ভাৰত... | as | wikipedia | manual | false | CC BY-SA 4.0 | 1030 | মুম্বাই | 2026-08-16T00:00:00 | 6,059 | 42,459 | 0.9214 | {
"urls_removed": 1,
"junk_digits": 8,
"latin_removed": 1,
"latin_kept": 367,
"latin_singles": 38
} | {
"ppl_bits": 2.0477,
"quality": 0.5773,
"coherence": 1,
"safety_hits": 0
} | 0 | 1 | as:wikipedia:1030 | train | |
as:wikipedia:1525 | অসম () উত্তৰ-পূব ভাৰতৰ এখন ৰাজ্য। ইংৰাজে অসম দখল কৰাৰ আগতে অসম এখন স্বতন্ত্ৰ ৰাষ্ট্ৰ আছিল। ১৮২৬ চনৰ ইয়াণ্ডাবু সন্ধি অনুসৰি অসম ইংৰাজৰ হাতলৈ যায়। ভাৰতৰ স্বাধীনতা আন্দোলনত আন প্ৰদেশৰ নিচিনাকৈ অসমৰ জনসাধাৰণেও গুৰুত্বপূৰ্ণভাৱে অংশগ্ৰহণ কৰে আৰু ভাৰতবৰ্ষ স্বাধীন হোৱাৰ পিছত অসম স্বাধীন ভাৰতৰ এখন অন্তৰংগ প্ৰদেশ হিচাপে গঠিত হ... | as | wikipedia | manual | false | CC BY-SA 4.0 | 1525 | অসম | 2026-08-16T00:00:00 | 4,548 | 30,372 | 0.9155 | {
"urls_removed": 2,
"junk_digits": 17,
"latin_removed": 4,
"latin_kept": 260,
"latin_singles": 26
} | {
"ppl_bits": 1.7187,
"quality": 0.3944,
"coherence": 1,
"safety_hits": 0
} | 1 | 1 | as:wikipedia:1525 | train | |
as:wikipedia:1650 | "তেজপুৰ () শোণিতপুৰ জিলাৰ এখন প্ৰধান নগ(...TRUNCATED) | as | wikipedia | manual | false | CC BY-SA 4.0 | 1650 | তেজপুৰ | 2026-08-16T00:00:00 | 1,016 | 7,429 | 0.9694 | {
"junk_digits": 3,
"latin_kept": 22
} | {
"ppl_bits": 2.1184,
"quality": 0.3857,
"coherence": 1,
"safety_hits": 0
} | 2 | 1 | as:wikipedia:1650 | train | |
as:wikipedia:1653 | "প্ৰকৃত যীশু গীৰ্জা বা সত্য যীশু গীৰ্জ(...TRUNCATED) | as | wikipedia | manual | false | CC BY-SA 4.0 | 1653 | প্ৰকৃত যীশু গীৰ্জা | 2026-08-16T00:00:00 | 449 | 2,940 | 0.7668 | {
"junk_digits": 1,
"latin_removed": 1,
"latin_kept": 81
} | {
"ppl_bits": 2.8335,
"quality": 0.205,
"coherence": 1,
"safety_hits": 0
} | 3 | 1 | as:wikipedia:1653 | train | |
as:wikipedia:1886 | "লিখন-শিল্পক এক কথাত সাহিত্য () বোলা হয়(...TRUNCATED) | as | wikipedia | manual | false | CC BY-SA 4.0 | 1886 | সাহিত্য | 2026-08-16T00:00:00 | 792 | 5,546 | 0.9478 | {
"latin_kept": 26,
"latin_singles": 3
} | {
"ppl_bits": 2.027,
"quality": 0.9709,
"coherence": 1,
"safety_hits": 0
} | 4 | 1 | as:wikipedia:1886 | train | |
as:wikipedia:1998 | "thumb|left|\nএণ্টাৰ্কটিকা পৃথিৱী এখন মহাদেশ(...TRUNCATED) | as | wikipedia | manual | false | CC BY-SA 4.0 | 1998 | এণ্টাৰ্কটিকা | 2026-08-16T00:00:00 | 116 | 804 | 0.9789 | {
"latin_kept": 2
} | {
"ppl_bits": 2.2209,
"quality": 0.3201,
"coherence": 1,
"safety_hits": 0
} | 5 | 3 | as:wikipedia:1998 | train | |
as:wikipedia:2003 | "ভূগোল (ইংৰাজী :- Geography গ্ৰীক ভাষাৰ γεωγραφία(...TRUNCATED) | as | wikipedia | manual | false | CC BY-SA 4.0 | 2003 | ভূগোল | 2026-08-16T00:00:00 | 448 | 2,903 | 0.9167 | {
"junk_digits": 15,
"latin_removed": 1,
"latin_kept": 19,
"latin_singles": 1
} | {
"ppl_bits": 2.2069,
"quality": 0.4658,
"coherence": 1,
"safety_hits": 0
} | 6 | 1 | as:wikipedia:2003 | train | |
as:wikipedia:2023 | "কম্পিউটাৰ বিজ্ঞান হ'ল তথ্য আৰু ইয়াৰ (...TRUNCATED) | as | wikipedia | manual | false | CC BY-SA 4.0 | 2023 | কম্পিউটাৰ বিজ্ঞান | 2026-08-16T00:00:00 | 717 | 5,473 | 0.889 | {
"urls_removed": 1,
"junk_digits": 3,
"latin_kept": 45,
"latin_singles": 2
} | {
"ppl_bits": 2.3957,
"quality": 0.1795,
"coherence": 1,
"safety_hits": 0
} | 7 | 3 | as:wikipedia:2023 | train | |
as:wikipedia:2098 | "বাংলাদেশ দক্ষিণ এছিয়াৰ এখন ৰাষ্ট্ৰ(...TRUNCATED) | as | wikipedia | manual | false | CC BY-SA 4.0 | 2098 | বাংলাদেশ | 2026-08-16T00:00:00 | 2,925 | 20,545 | 0.9633 | {
"junk_digits": 6,
"latin_kept": 66,
"latin_singles": 3
} | {
"ppl_bits": 2.0067,
"quality": 0.7325,
"coherence": 1,
"safety_hits": 0
} | 8 | 1 | as:wikipedia:2098 | train | |
as:wikipedia:2099 | "পাকিস্তান বা ইছলামী প্ৰজাতন্ত্ৰী পা(...TRUNCATED) | as | wikipedia | manual | false | CC BY-SA 4.0 | 2099 | পাকিস্তান | 2026-08-16T00:00:00 | 492 | 3,450 | 0.9791 | {
"junk_digits": 3,
"latin_kept": 2,
"latin_singles": 4
} | {
"ppl_bits": 1.7483,
"quality": 0.8833,
"coherence": 1,
"safety_hits": 0
} | 9 | 1 | as:wikipedia:2099 | train |
CL3410 Phase 1 — Malayalam and Assamese language-model corpora
Two independently built pretraining corpora with their own tokenizers: Malayalam as the higher-resource language and Assamese as the lower-resource one. Nothing is shared between them — separate sources, separate cleaning thresholds, separate vocabularies, separate models. Only the language-agnostic pipeline code is common, parameterised per language.
Everything here was collected and cleaned for this project. No pretrained tokenizer or language model was used at any stage; the quality filters are fitted from scratch in NumPy and the tokenizers are trained from scratch with SentencePiece.
Headline numbers
| Malayalam | Assamese | |
|---|---|---|
| Documents | 553,957 | 553,317 |
| Words | 186,612,415 | 251,290,445 |
| Tokens in the train split (exact, own tokenizer) | 499,067,812 | 480,651,823 |
| Tokens, whole corpus | 509,330,832 | 490,722,298 |
| Manual share of words | 22.9% | 30.7% |
| Manual share of train-split tokens | 27.2% | 35.1% |
| Near-duplicates removed | 0.1% | 11.0% |
| Train / val / test | 98 / 1 / 1 | 98 / 1 / 1 |
"Manual" means collected by this project — scraped, OCR'd or transcribed — as opposed to taken from an existing published corpus. The token share exceeds the word share because manually collected text (OCR'd books, literary prose) has higher fertility than crawled text.
Layout
lma-dataset/processed/{ml,as}/
train-*.jsonl.gz val-*.jsonl.gz test-*.jsonl.gz
corpus_stats.json headline totals, per-split, per-source
stage_counters.json the full filter funnel, per source
token_stats.json exact token counts by source type
lma-dataset/{malayalam,assamese}/tokenizer/
{ml,as}_sp_6000.model SentencePiece model
{ml,as}_sp_6000.vocab vocabulary
{ml,as}_sp_6000.config.json every hyperparameter used
tokenizer_report_*.json fertility, compression, training input
token_stats_*.json unknown-token and utilisation statistics
lma-dataset/{malayalam,assamese}/manual/
every manually collected source, pre-cleaning, with provenance
report/
phase1_malayalam.md phase1_assamese.md phase1_tokenizers.md
figures/ 56 plots tables/ 12 CSVs
Each document carries its provenance, so any statistic here can be recomputed and the manual/downloaded split re-derived:
doc_id, text, source, source_type (manual|downloaded), url, title,
license, date_collected, script_ratio, synthetic, dup_cluster, split_key
Loading
from datasets import load_dataset
ml = load_dataset("amritha27/cl3410-phase1", "malayalam", split="train")
As = load_dataset("amritha27/cl3410-phase1", "assamese", split="train")
The tokenizers are plain SentencePiece models:
import sentencepiece as spm
from huggingface_hub import hf_hub_download
p = hf_hub_download("amritha27/cl3410-phase1",
"lma-dataset/malayalam/tokenizer/ml_sp_6000.model",
repo_type="dataset")
sp = spm.SentencePieceProcessor(model_file=p)
How it was built
Nine stages, cheapest filters first (the Yi recipe): heuristics, then learned filters, then deduplication.
Calibration. Thresholds come from percentiles of each source's own measured distribution rather than being assumed — a symbol-ratio bar that suits Wikipedia is wrong for a scanned book.
Learned filters, from scratch. A character 5-gram LM with stupid backoff over hashed count tables gives perplexity; a hashed logistic-regression classifier (2^18 features) gives a quality score. Crawled text is ranked within its own distribution, not against the curated distribution — the LM is fitted on curated text, so crawl scores worse under it by construction, and judging one against the other filters register rather than quality.
Manual text is privileged, deliberately. Manual sources are processed first and seed the deduplication hash set, so a collision is resolved in favour of the manual copy. Manual sources also get relaxed symbol and script thresholds, because OCR output genuinely is noisier and holding irreplaceable hand-collected text to a crawl's bar discards it.
Deduplication. Exact (blake2b) and paragraph-level boilerplate removal, then near-duplicates via MinHash (100 permutations, 5-word shingles) with LSH banding at 20 x 5, whose S-curve is steepest at Jaccard 0.549. Clusters are formed with union-find.
Decontamination. Splits are assigned by hashing the near-duplicate cluster id, not the document id, so no near-duplicate can straddle a train/test boundary. This is asserted, and both corpora report zero violations checked exactly.
Tokenizers
SentencePiece unigram, vocabulary 6,000, byte fallback enabled,
character_coverage=0.9995, identity normalisation (the pipeline has
already normalised), trained on the train split only.
| Malayalam | Assamese | |
|---|---|---|
| Fertility (tokens/word) | 2.729 | 1.953 |
| — manual text | 3.252 | 2.239 |
| — downloaded text | 2.575 | 1.826 |
| Characters per token | 3.53 | 3.33 |
| UNK rate | 0 | 0 |
| Byte-fallback rate | 4.10e-02 | 3.04e-02 |
| Vocabulary utilisation | 97.7% | 97.5% |
Why 6,000. This is a parameter-budget decision. For a decoder-only
transformer with tied embeddings and ffn_mult=4, total parameters are
V*d + L*(12d^2 + 2d). Fitting each vocabulary to a 25M budget, the
width holds at d_model=480 up to 6,000 and drops to 448 at 8,000.
So 6,000 is the largest vocabulary that still affords the full width:
anything smaller has an identical body and worse fertility, anything
larger trades 2.85M working parameters for 0.14 fertility. Embedding
parameters do no computation — they are a lookup — so moving budget into
them is moving it out of the part that learns.
A nine-point sweep (2k to 48k) backs this: report/tables/vocab_sweep_*.csv
and the fertility_vs_vocab, parameter_budget and capacity_tradeoff
figures.
Unknown tokens. With byte fallback, UNK is zero by construction, so that number alone says nothing. The reports also give byte-fallback rate (split into structural whitespace and real content), OOV character rate, and a counterfactual UNK rate measured by re-encoding held-out text with byte fallback disabled — 3.79e-02 for Malayalam, 2.58e-02 for Assamese.
Limitations
- Assamese is 480.7M train-split tokens, 3.9% under the 500M target
(490.7M across the whole corpus, 1.9% under). The downloaded pool across
all twelve sources is exhausted after filtering: stage 02 reports 14.3M
words of budget unused. This needs new sources, not more of the existing
ones.
report/phase1_assamese.mddocuments it. - Malayalam's train split is 0.19% under 500M while its whole corpus is 1.9% over. The target is stated over training tokens, so the train figure is the one that counts; the gap is the 2% held out for validation and test, not a data shortage.
- A small amount of Assamese is machine-translated (Sangraha's
synthetic/asm_Beng). It is allocated only against the shortfall real sources cannot fill, is flagged per document withsynthetic: true, and its costs are set out in the project repository. - ~1.9% of Malayalam manual text is Sanskrit in Malayalam script (Wikisource mūlam editions) — 0.45% of the corpus. Malayalam's vocabulary is already heavily tatsama, so these pieces are not foreign.
- Third-party corpora are not mirrored here. IndicCorp v2, Sangraha,
CulturaX, FineWeb-2, Varta and Samanantar are redistributions under
their own licences; they are reproducible from the collection code, and
their per-source counts before and after cleaning are in
report/tables/sources_*.csv. - Assamese is written in the Bengali script and is easy to mistake for Bengali. Language identification keys on the Assamese-only letters ৰ (U+09F0) and ৱ (U+09F1) rather than on the Unicode block.
Licensing
Mixed, per source, and recorded per document in the license field.
Wikipedia and Wikisource content is CC BY-SA; scanned books are
public-domain works; scraped news is used under fair-dealing for
non-commercial academic research and is attributed by URL. Anyone reusing
this should check the source and license fields for the subset they
intend to use rather than treating the collection as uniformly licensed.
Built for CL3410 (Language Models and Agents), IIIT Hyderabad.
- Downloads last month
- 63