The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
seq: string
bnd: list<item: int64>
child 0, item: int64
n_boundaries: int64
source: string
samasa_type: string
stem1: string
stem2: string
verified: bool
to
{'seq': Value('string'), 'bnd': List(Value('int64')), 'n_boundaries': Value('int64'), 'source': Value('string'), 'verified': Value('bool')}
because column names don't match
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 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
seq: string
bnd: list<item: int64>
child 0, item: int64
n_boundaries: int64
source: string
samasa_type: string
stem1: string
stem2: string
verified: bool
to
{'seq': Value('string'), 'bnd': List(Value('int64')), 'n_boundaries': Value('int64'), 'source': Value('string'), 'verified': Value('bool')}
because column names don't match
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.
seq string | bnd list | n_boundaries int64 | source string | verified bool |
|---|---|---|---|---|
yepanTAnaitiparItyopadaDIta | [
1,
8,
11,
18
] | 4 | sandhi_corpus | true |
yasyAsteyattedevIvizARApASAnitiunmocanapratirUpam | [
5,
7,
10,
12,
16,
22,
27,
30,
38
] | 9 | sandhi_corpus | true |
saMpAtavantaMkaroti | [
12
] | 1 | sandhi_corpus | true |
vAcAbadDAyaBUmiparileKam | [
3,
10,
14
] | 3 | sandhi_corpus | true |
AyanaitiSamanam | [
4,
7
] | 2 | sandhi_corpus | true |
antarAhradaMkaroti | [
5,
11
] | 2 | sandhi_corpus | true |
SAleca | [
3
] | 1 | sandhi_corpus | true |
avakayASAlAMparitanoti | [
6,
11
] | 2 | sandhi_corpus | true |
SapyamAnAyaprayacCati | [
10
] | 1 | sandhi_corpus | true |
nidagDaMprakzAlayati | [
7
] | 1 | sandhi_corpus | true |
mahImusvititaraRAnyAlamBayati | [
4,
5,
7,
10,
18
] | 5 | sandhi_corpus | true |
dUrAnnAvaMsaMpAtavatIm | [
4,
9
] | 2 | sandhi_corpus | true |
nOmaRiMbaDnAti | [
1,
6
] | 2 | sandhi_corpus | true |
prapaTaitinazwEziRAMprakzAlitAByaktapARipAdAnAMdakziRAnpARInnimfjyotTApayati | [
6,
9,
14,
19,
29,
35,
39,
46,
54,
59,
66
] | 11 | sandhi_corpus | true |
evaMsaMpAtavatonimfjya | [
3,
14
] | 2 | sandhi_corpus | true |
ekaviMSatiMSarkarAScatuzpaTe'vakzipya | [
10,
18,
27
] | 3 | sandhi_corpus | true |
namaskftyetimantroktam | [
9,
11,
17
] | 3 | sandhi_corpus | true |
aMholiNgAnAmApoBojanahavIMzyaBimarSanopasTAnamAdityasya | [
3,
11,
14,
20,
27,
37,
45
] | 7 | sandhi_corpus | true |
svayaMhavizAMBojanam | [
5,
12
] | 2 | sandhi_corpus | true |
viSvedevAitiAyuzyARi | [
4,
8,
11
] | 3 | sandhi_corpus | true |
sTAlIpAkeGftapiRqAnpratinIyASnAti | [
8,
12,
18,
27
] | 4 | sandhi_corpus | true |
asminvasuyadAbaDnannavaprARAnitiyugmakfzRalamAdizwAnAMsTAlIpAkaADAyabaDnAti | [
4,
8,
11,
18,
22,
28,
31,
36,
44,
53,
62,
67
] | 12 | sandhi_corpus | true |
AyurdAitigodAnaMkArayizyansaMBArAnsaMBaratyamamrimojomAnIMdUrvAmakarRamaSmamaRqalamAnaquhaSakftpiRqaMzazdarBaprAntAnikaMsamahatevasaneSudDamAjyaMSAntAozaDIrnavamudakumBam | [
3,
5,
8,
15,
25,
33,
42,
49,
57,
63,
70,
74,
82,
89,
94,
100,
103,
108,
116,
122,
127,
133,
139,
144,
149,
155,
160
] | 27 | sandhi_corpus | true |
bAhyataHSAntavfkzasyeDmaMprAYcamupasamADAyaparisamuhyaparyukzyaparistIryabarhirudapAtramupasAdyaparicaraRenAjyaMparicaryanityAnpurastAdDomAdDutvAjyaBAgOcapaScAdagneHprAcmuKaupaviSyAnvArabDAyaSAntyudakaMkaroti | [
7,
12,
20,
24,
31,
42,
53,
62,
72,
78,
87,
95,
107,
111,
120,
126,
139,
144,
147,
151,
153,
159,
164,
168,
172,
180,
190,
201
] | 28 | sandhi_corpus | true |
tatrEtatsUktamanuyojayati | [
4,
7,
13
] | 3 | sandhi_corpus | true |
trirevaagniMsamprokzatitriHparyukzati | [
3,
6,
11,
22,
26
] | 5 | sandhi_corpus | true |
triHkArayamARamAcAmayaticasamprokzatica | [
3,
14,
23,
25,
36
] | 5 | sandhi_corpus | true |
SakftpiRqasyasTAlarUpaMkftvAsuhfdebrAhmaRAyaprayacCati | [
4,
12,
17,
22,
27,
33,
43
] | 7 | sandhi_corpus | true |
tatsuhfddakziRato'gneH | [
2,
7,
16
] | 3 | sandhi_corpus | true |
aTAsmAanvArabDAyakaroti | [
2,
5,
16
] | 3 | sandhi_corpus | true |
AyurdAitianenasUktenAjyaMjuhvanmUrDnisaMpAtAnAnayati | [
3,
5,
8,
13,
20,
24,
30,
36,
44
] | 9 | sandhi_corpus | true |
dakziRepARAvaSmamaRqalaudapAtrauttarasaMpAtAnsTAlarUpaAnayati | [
6,
11,
15,
22,
30,
36,
44,
49,
53
] | 9 | sandhi_corpus | true |
amamrimojomAnIMcaudapAtre'vaDAya | [
6,
14,
16,
24
] | 4 | sandhi_corpus | true |
aditiHSmaSrvitiundati | [
5,
11,
14
] | 3 | sandhi_corpus | true |
yatkzureRetiudakpattraMkzuramadBiHScotyatriHpramArzwi | [
2,
9,
11,
15,
22,
28,
33,
39,
43
] | 9 | sandhi_corpus | true |
yenAvapaditidakziRasyakeSapakzasyadarBapiYjUlyAkeSAnaBiniDAyapracCidyasTAlarUpekaroti | [
3,
8,
11,
21,
25,
33,
38,
46,
51,
60,
69,
74,
78
] | 13 | sandhi_corpus | true |
evamevadvitIyaMkaroti | [
3,
6,
14
] | 3 | sandhi_corpus | true |
evaMtftIyam | [
3
] | 1 | sandhi_corpus | true |
evamevauttarasyakeSapakzasyakaroti | [
3,
6,
15,
19,
27
] | 5 | sandhi_corpus | true |
aTAtogfhyakarmARyupadekzyAmaH | [
2,
4,
9,
16
] | 4 | sandhi_corpus | true |
yajYopavItinAcAntodakenakftyam | [
4,
12,
17,
23
] | 4 | sandhi_corpus | true |
udagayanepUrvapakzepuRye'hani | [
8,
18,
23
] | 3 | sandhi_corpus | true |
sarvARyevaanvAhAryavanti | [
6,
9
] | 2 | sandhi_corpus | true |
apavargeBojanaMyaTASakti | [
7,
14
] | 2 | sandhi_corpus | true |
brahmacArIvedamaDItyAntyAMsamiDamaByADAsyaYjAyAyAHpARiMjiGfkzannanuguptAapo'pAhftya | [
9,
14,
20,
25,
32,
42,
49,
54,
63,
71,
74
] | 11 | sandhi_corpus | true |
lakzaRAvfdezAsarvatra | [
6,
9,
12
] | 3 | sandhi_corpus | true |
BUrBuvaHsvaritiaBimuKamagniMpraRayanti | [
2,
7,
11,
14,
22,
27
] | 6 | sandhi_corpus | true |
pretegfhapatOkaraRam | [
4,
12
] | 2 | sandhi_corpus | true |
taTAtiTinakzatraparvasamavAyedarSepOrRamAsevAagnisamADAnaMkurvIta | [
3,
7,
15,
20,
28,
33,
42,
44,
48,
57
] | 10 | sandhi_corpus | true |
kulAtambarIzAtagnimAhftyAByAdaDyAdapiyAjinaevaAgArAdbrAhmaRasyarAjanyasyavESyasya | [
4,
13,
18,
24,
33,
36,
42,
45,
51,
62,
72
] | 11 | sandhi_corpus | true |
apianyaMmaTitvAByAdaDyAt | [
2,
7,
14
] | 3 | sandhi_corpus | true |
puRyastvevaanarDukoBavatIti | [
5,
7,
10,
18,
24
] | 5 | sandhi_corpus | true |
yaTAkAmayetataTAkuryAt | [
3,
11,
15
] | 3 | sandhi_corpus | true |
saevaantyAMsamiDamaByAdaDAtijAyAyAHpARiMjiGfkzaYjuhotitamaBisaMyacCet | [
1,
4,
10,
17,
27,
34,
39,
47,
53,
56
] | 10 | sandhi_corpus | true |
saevaasyagfhyo'gniH | [
1,
4,
8,
13
] | 4 | sandhi_corpus | true |
tenacaevaasyaprAtarAhutirhutABavatIti | [
3,
5,
8,
12,
24,
28,
34
] | 7 | sandhi_corpus | true |
sAyamAhutyupakramaevaataUrDvaMgfhye'gnO | [
9,
17,
20,
23,
29,
34
] | 6 | sandhi_corpus | true |
purAvelAyAHsAyaMprAtaranuguptAapaAharetparicaraRIyArapisAyam | [
3,
10,
21,
29,
32,
38,
51,
54
] | 8 | sandhi_corpus | true |
apikumBAtmaRikAtgfhRIyAt | [
2,
8,
15
] | 3 | sandhi_corpus | true |
purAstamayAdagniMprAduzkftyAstamitesAyamAhutiMjuhuyAt | [
3,
11,
16,
27,
31,
34,
45
] | 7 | sandhi_corpus | true |
purodayAtprAtaHprAduzkftyodite'n | [
3,
8,
14,
25,
29
] | 5 | sandhi_corpus | true |
yajYopavItaMkurutesUtraMvastramapirajjumeva | [
11,
17,
23,
30,
33,
39
] | 6 | sandhi_corpus | true |
dakziRaMbAhumudDftyaSiro'vaDAya | [
7,
12,
19,
23
] | 4 | sandhi_corpus | true |
dakziRaMkakzamanvavalambaMBavati | [
7,
13,
25
] | 3 | sandhi_corpus | true |
evamupavItIBavati | [
3,
10
] | 2 | sandhi_corpus | true |
savyaMbAhumudDftyaSiro'vaDAya | [
5,
10,
17,
21
] | 4 | sandhi_corpus | true |
savyaMkakzamanvavalambaMBavati | [
5,
11,
23
] | 3 | sandhi_corpus | true |
evaMprAcInAvItIBavati | [
3,
14
] | 2 | sandhi_corpus | true |
pitfyajYetvevaprAcInAvItIBavati | [
3,
8,
10,
13,
24
] | 5 | sandhi_corpus | true |
udaYcamagnerutsfpyaprakzAlyapARIpAdOcaupaviSyatrirAcAmeddviHparimfjIta | [
6,
11,
18,
27,
31,
35,
37,
45,
49,
55,
59
] | 11 | sandhi_corpus | true |
pAdAvaByukzyaSiro'Byukzet | [
4,
12,
16
] | 3 | sandhi_corpus | true |
indriyARyadBiHsaMspfSedakziRInAsikekarRAviti | [
8,
13,
22,
28,
34,
40
] | 6 | sandhi_corpus | true |
yadyanmImAMsyaMsyAttattadadBiHsaMspfSet | [
2,
5,
14,
18,
21,
24,
29
] | 7 | sandhi_corpus | true |
tatrEtadAhuH | [
4,
7
] | 2 | sandhi_corpus | true |
antataHpratyupaspfSyaSucirBavati | [
6,
20,
25
] | 3 | sandhi_corpus | true |
hfdayaspfSastvevaapaAcAmet | [
5,
11,
13,
16,
19
] | 5 | sandhi_corpus | true |
ucCizwohaevaato'nyaTA | [
6,
8,
11,
14
] | 4 | sandhi_corpus | true |
aTapratyupasparSanAni | [
2
] | 1 | sandhi_corpus | true |
suptvABuktvAkzutvAsnAtvApItvAvipariDAyacaraTyAmAkramyaSmaSAnaMcaAcAntaHpunarAcAmet | [
5,
11,
17,
23,
28,
38,
40,
46,
53,
61,
63,
70,
75
] | 13 | sandhi_corpus | true |
hutvopottizWataH | [
4
] | 1 | sandhi_corpus | true |
anupfzWaMpatiHparikramyadakziRataudaNmuKo'vatizWate | [
2,
8,
13,
23,
32,
36,
40
] | 7 | sandhi_corpus | true |
pUrvAmAtAlAjAnAdAyaBrAtAvAvaDUmAkrAmayedaSmAnaMdakziRenaprapadena | [
4,
8,
13,
18,
23,
25,
30,
39,
46,
55
] | 10 | sandhi_corpus | true |
pARigrAhojapatImamaSmAnamAroheti | [
8,
14,
17,
24,
29
] | 5 | sandhi_corpus | true |
sakftsaMgfhItaMlAjAnAmaYjaliMBrAtAvaDvaYjalAvAvapati | [
4,
14,
21,
28,
33,
37,
44
] | 7 | sandhi_corpus | true |
taMsopastIrRABiGAritamagnOjuhotyavicCindatyaYjalimiyaMnAryupabrUtaiti | [
2,
4,
12,
21,
25,
31,
32,
42,
49,
53,
57,
65
] | 12 | sandhi_corpus | true |
aryamaRaMnudevaMpUzaRamitiuttarayoH | [
8,
10,
15,
22,
25
] | 5 | sandhi_corpus | true |
hutepatiryaTetaMparivrajyapradakziRamagniMpariRayatimantravAnvAbrAhmaRaHkanyalApitfByaiti | [
3,
8,
15,
25,
36,
41,
51,
60,
62,
71,
78,
85
] | 12 | sandhi_corpus | true |
pariRItAtaTEvaavatizWatetaTAkrAmatitaTAjapatitaTAvapatitaTAjuhoti | [
7,
11,
13,
23,
27,
34,
38,
44,
48,
54,
58
] | 11 | sandhi_corpus | true |
evaMtris | [
3
] | 1 | sandhi_corpus | true |
SUrpeRaSezamagnAvopyaprAcudIcImaByutkrAmayantyekamizaiti | [
6,
11,
16,
20,
24,
30,
45,
49,
52
] | 9 | sandhi_corpus | true |
dakziRenaprakramyasavyenAnukrAmet | [
8,
17,
24
] | 3 | sandhi_corpus | true |
mAsavyenadakziRamatikrAmetibrUyAt | [
1,
8,
16,
24,
26
] | 5 | sandhi_corpus | true |
IkzakAnpratimantrayetasumaNgalIriyaMvaDUriti | [
6,
21,
23,
31,
35,
40
] | 6 | sandhi_corpus | true |
apareRAgnimOdako'nusaMvrajya | [
6,
10,
15
] | 3 | sandhi_corpus | true |
avasiktAyAHsavyenapARinAYjalimupodgfhyadakziRenapARinAdakziRaMpARiMsANguzWamuttAnaMgfhItvEtAHzaqpARigrahaRIyAjapatigfBRAmitaiti | [
10,
17,
23,
29,
38,
47,
53,
61,
66,
68,
75,
82,
89,
92,
95,
108,
114,
121,
123
] | 19 | sandhi_corpus | true |
samAptAsUdvahanti | [
8
] | 1 | sandhi_corpus | true |
evamuktastayArAjApriyayAvaSaMgatastAmuvAcatejAHkEkeyImIzadutsmitaH | [
3,
8,
12,
16,
23,
28,
33,
36,
41,
46,
53,
57
] | 12 | sandhi_corpus | true |
nivfttevidurecaevaBIzmejanetaTAjAtaSatrumAmantryakuntIvacanamabravIt | [
6,
12,
14,
17,
22,
26,
30,
40,
48,
53,
60
] | 11 | sandhi_corpus | true |
tvayAcatattaTetiuktaH | [
4,
6,
9,
13,
15
] | 5 | sandhi_corpus | true |
jAnImonacatadvayam | [
5,
7,
9,
12
] | 4 | sandhi_corpus | true |
Sanskrit Sandhi + Samas Boundary Dataset — V3
The canonical merged training dataset for the sanskrit-sandhi-boundary model: sentence-level external sandhi (corpus) + grammar-generated samas (compounds, all 7 types) in one file.
Composition
| Source | Rows | Description |
|---|---|---|
| sandhi_corpus | 741,803 | running-text word boundaries (external sandhi) from sanskrit-sandhi-boundaries-v2 |
| samas | 258,408 | grammar-generated compounds (7 types, laukik + alaukik vigraha) from sanskrit-samas-v1 |
| Total | ~1,000,211 | one canonical training file |
Design rationale
The splitter's task at a seam is phonetically identical for external sandhi
and internal compound boundaries — the model must fire at every valid seam and
stay quiet inside single words. Merging (not split-training) lets the shared
phonetics reinforce both, while the samas rows teach stem-co-occurrence for the
identity-concat class (no phonetic signal) and the corpus rows keep the real
distribution. See benchmarks/PLAN_SAMAS.md.
Schema (per row)
| Field | Type | Description |
|---|---|---|
seq |
string | SLP1 surface (input to the model) |
bnd |
list[int] | Boundary positions (last-char indices of each piece except the last) |
n_boundaries |
int | len(bnd) |
source |
string | sandhi_corpus or samas |
samasa_type |
string (opt) | one of 7 types, for samas rows |
stem1, stem2 |
string (opt) | constituent stems, for samas rows |
verified |
bool | always true |
Samasa type coverage (in the samas portion)
| Type | Meaning | n |
|---|---|---|
| tatpuruṣa | determinative (X of Y) | 62,893 |
| karmadhāraya | appositional (X that is Y) | 62,893 |
| dvandva | copulative (X and Y) | 59,924 |
| bahuvrīhi | exocentric "having X" | 60,172 |
| avyayībhāva | adverbial | 7,097 |
| amreḍita | reduplicative | 5,091 |
| dvigu | numerical | 338 |
Rebuilding
# samas dataset (deterministic, seed 42)
python3 benchmarks/build_samas_data.py --out data/samas_V1.jsonl
# merged dataset (deterministic, seed 42)
python3 benchmarks/merge_datasets.py \
--sandhi data/train_V2_full.jsonl \
--samas data/samas_V1.jsonl \
--out data/train_V3_sandhi_samas.jsonl
Related
- Samas-only:
sanskrit-samas-v1 - Sandhi-only:
sanskrit-sandhi-boundaries-v2 - Benchmark:
sanskrit-sandhi-boundary-v2(model)
- Downloads last month
- 30