Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 1 new columns ({'w3'})

This happened while the csv dataset builder was generating data using

hf://datasets/Thanmay/indicvoices_ngrams/data/asm_3gram_min2_top10.tsv (at revision 9d897c449cd4a48e0aff9b08f64a4977f527d2dd), ['hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/asm_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/asm_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/ben_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/ben_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/brx_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/brx_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/doi_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/doi_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/gom_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/gom_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/guj_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/guj_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/hin_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/hin_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/kan_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/kan_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/kas_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/kas_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mai_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mai_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mal_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mal_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mar_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mar_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mni_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mni_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/nep_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/nep_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/ori_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/ori_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/pan_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/pan_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/san_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/san_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/sat_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/sat_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/snd_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/snd_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/tam_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/tam_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/tel_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/tel_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/urd_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/urd_3gram_min2_top10.tsv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              w1: string
              w2: string
              w3: string
              count: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 700
              to
              {'w1': Value('string'), 'w2': Value('string'), 'count': Value('int64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, 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 956, 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 1702, 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 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 1 new columns ({'w3'})
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/Thanmay/indicvoices_ngrams/data/asm_3gram_min2_top10.tsv (at revision 9d897c449cd4a48e0aff9b08f64a4977f527d2dd), ['hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/asm_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/asm_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/ben_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/ben_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/brx_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/brx_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/doi_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/doi_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/gom_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/gom_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/guj_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/guj_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/hin_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/hin_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/kan_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/kan_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/kas_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/kas_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mai_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mai_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mal_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mal_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mar_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mar_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mni_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/mni_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/nep_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/nep_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/ori_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/ori_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/pan_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/pan_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/san_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/san_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/sat_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/sat_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/snd_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/snd_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/tam_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/tam_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/tel_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/tel_3gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/urd_2gram_min2_top10.tsv', 'hf://datasets/Thanmay/indicvoices_ngrams@9d897c449cd4a48e0aff9b08f64a4977f527d2dd/data/urd_3gram_min2_top10.tsv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

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.

w1
string
w2
string
count
int64
<s>
অঁ
56,112
<s>
আৰু
21,596
<s>
হয়
19,861
<s>
মই
11,664
<s>
অ
11,278
<s>
এই
7,878
<s>
হেল্ল
7,683
<s>
আমাৰ
5,870
<s>
মোৰ
5,780
<s>
আমি
4,737
আৰু
সেই
3,478
আৰু
মই
3,044
আৰু
এই
2,585
আৰু
মোৰ
2,054
আৰু
আমাৰ
2,007
আৰু
মানে
1,665
আৰু
আমি
1,643
আৰু
এটা
1,412
আৰু
তাৰ
1,279
আৰু
লগতে
1,193
হয়
হয়
11,375
হয়
আৰু
6,088
হয়
মই
1,917
হয়
নেকি
1,379
হয়
সেই
1,243
হয়
তেতিয়া
1,232
হয়
আমাৰ
952
হয়
মানে
914
হয়
কিন্তু
827
হয়
অঁ
799
অঁ
অঁ
18,440
অঁ
ঠিক
3,337
অঁ
হয়
2,670
অঁ
মই
2,175
অঁ
এই
1,251
অঁ
আৰু
913
অঁ
আপুনি
832
অঁ
সেইটো
598
অঁ
এতিয়া
592
অঁ
হেল্ল
549
মই
মোৰ
2,824
মই
মানে
1,919
মই
ভাবোঁ
1,735
মই
এই
1,139
মই
এতিয়া
1,065
মই
বহুত
984
মই
আপোনাক
967
মই
সেই
861
মই
আপোনাৰ
758
মই
এটা
707
আমি
সেই
1,113
আমি
যদি
1,108
আমি
মানে
1,077
আমি
আমাৰ
1,067
আমি
বহুত
803
আমি
এতিয়া
762
আমি
এই
689
আমি
সকলোৱে
614
আমি
বিভিন্ন
568
আমি
যেতিয়া
555
মানে
কি
2,522
মানে
মই
1,794
মানে
বহুত
1,286
মানে
আমাৰ
1,225
মানে
আমি
1,086
মানে
মোৰ
1,004
মানে
হেৰি
1,004
মানে
এই
834
মানে
আপোনাৰ
820
মানে
ভাল
812
আছে
আৰু
2,770
আছে
বাৰু
2,149
আছে
ঠিক
1,304
আছে
মই
1,279
আছে
নেকি
1,277
আছে
সেই
1,167
আছে
আমাৰ
925
আছে
আপুনি
888
আছে
অঁ
769
আছে
দিয়ক
694
আমাৰ
ইয়াত
1,739
আমাৰ
এই
1,092
আমাৰ
অসমীয়া
908
আমাৰ
মানে
783
আমাৰ
ঘৰত
773
আমাৰ
অঞ্চলত
646
আমাৰ
ঘৰৰ
643
আমাৰ
গাঁৱত
587
আমাৰ
গাঁৱৰ
572
আমাৰ
অসমৰ
556
কৰি
দিব
1,443
কৰি
আছোঁ
1,226
কৰি
আছে
1,209
কৰি
পেলাই
1,121
কৰি
মোৰ
980
কৰি
আমি
813
কৰি
দিম
798
কৰি
মেলি
662
কৰি
দিয়ে
639
কৰি
মই
636
End of preview.

IndicVoices keyboard n-grams

Pruned word 2-gram and 3-gram counts for the 22 languages of ai4bharat/IndicVoices (train + valid splits, normalized text column), built for conversational keyboard next-word prediction. The vocabulary (and unigram counts for backoff) is Thanmay/indicvoices_vocab.

Files

Per language in data/: <lang>_2gram_min<N>_top10.tsv and <lang>_3gram_min<N>_top10.tsv, tab-separated with a header:

file columns
2-gram w1 w2 count — w1 is the context, w2 the predicted word
3-gram w1 w2 w3 count — w1 w2 is the context, w3 the predicted word

Rows are grouped by context; within a context, candidates are sorted by descending count (ties: more frequent word first), so the first rows of a context are its top predictions. <s> marks the start of a sentence (<s> w1 w2 = "sentence starts with w1, next word w2").

import pandas as pd
from huggingface_hub import hf_hub_download
p = hf_hub_download("Thanmay/indicvoices_ngrams", "data/hin_3gram_min2_top10.tsv", repo_type="dataset")
tri = pd.read_csv(p, sep="\t", quoting=3, keep_default_na=False)   # quoting=3: no quote handling
tri[(tri.w1 == "क्या") & (tri.w2 == "कर")].head(3)                  # -> सकते, रहे, रहा

How it was built

  1. Tokenization identical to the vocabulary: whitespace split, edge punctuation stripped.
  2. Vocabulary-only n-grams: only words in the keyboard vocabulary (Thanmay/indicvoices_vocab) are used; any other token (English, numbers, ASR tags, rare/noisy words) breaks the context, so no n-gram spans it.
  3. Sentence boundaries: line breaks and sentence-final punctuation (. ? ! । ॥ | ۔ ؟) end a sentence, whether attached to the end of a token or to the start of the next one (Urdu often writes ہے ۔پاکستان).
  4. Pruning: an n-gram is kept if it occurs at least 0.01 times per million corpus tokens floored at 2 (min_count = max(2, round(0.01 * tokens / 1e6)), giving min_count = 2 for all 22 languages), and only the 10 most frequent next words per context are kept.

Statistics

code language corpus tokens sentences min_count 2-gram file 2-grams 3-gram file 3-grams
hin Hindi 7,878,262 441,580 2 data/hin_2gram_min2_top10.tsv 101,307 data/hin_3gram_min2_top10.tsv 448,416
pan Punjabi 7,295,613 383,560 2 data/pan_2gram_min2_top10.tsv 104,831 data/pan_3gram_min2_top10.tsv 428,109
tam Tamil 6,110,734 411,537 2 data/tam_2gram_min2_top10.tsv 152,255 data/tam_3gram_min2_top10.tsv 220,631
asm Assamese 6,067,264 449,706 2 data/asm_2gram_min2_top10.tsv 125,142 data/asm_3gram_min2_top10.tsv 282,750
ben Bengali 5,119,824 331,775 2 data/ben_2gram_min2_top10.tsv 104,371 data/ben_3gram_min2_top10.tsv 282,842
ori Odia 5,045,456 383,504 2 data/ori_2gram_min2_top10.tsv 110,940 data/ori_3gram_min2_top10.tsv 231,070
urd Urdu 4,923,837 254,038 2 data/urd_2gram_min2_top10.tsv 76,461 data/urd_3gram_min2_top10.tsv 313,604
mar Marathi 4,585,290 291,239 2 data/mar_2gram_min2_top10.tsv 111,386 data/mar_3gram_min2_top10.tsv 205,270
mal Malayalam 4,441,565 322,435 2 data/mal_2gram_min2_top10.tsv 116,142 data/mal_3gram_min2_top10.tsv 128,172
kan Kannada 4,151,041 299,504 2 data/kan_2gram_min2_top10.tsv 109,851 data/kan_3gram_min2_top10.tsv 120,564
mai Maithili 3,821,926 225,275 2 data/mai_2gram_min2_top10.tsv 94,673 data/mai_3gram_min2_top10.tsv 191,103
kas Kashmiri 3,637,307 195,050 2 data/kas_2gram_min2_top10.tsv 85,974 data/kas_3gram_min2_top10.tsv 176,356
doi Dogri 3,589,616 155,967 2 data/doi_2gram_min2_top10.tsv 76,907 data/doi_3gram_min2_top10.tsv 207,069
guj Gujarati 3,552,408 212,044 2 data/guj_2gram_min2_top10.tsv 89,061 data/guj_3gram_min2_top10.tsv 181,976
nep Nepali 3,536,843 241,871 2 data/nep_2gram_min2_top10.tsv 93,032 data/nep_3gram_min2_top10.tsv 171,760
snd Sindhi 3,525,525 192,205 2 data/snd_2gram_min2_top10.tsv 82,101 data/snd_3gram_min2_top10.tsv 208,921
tel Telugu 3,423,778 258,491 2 data/tel_2gram_min2_top10.tsv 103,949 data/tel_3gram_min2_top10.tsv 136,817
brx Bodo 3,255,044 296,324 2 data/brx_2gram_min2_top10.tsv 89,630 data/brx_3gram_min2_top10.tsv 119,674
sat Santali 2,872,606 219,353 2 data/sat_2gram_min2_top10.tsv 63,099 data/sat_3gram_min2_top10.tsv 166,866
mni Manipuri 2,562,740 211,556 2 data/mni_2gram_min2_top10.tsv 75,875 data/mni_3gram_min2_top10.tsv 88,888
san Sanskrit 2,004,849 196,842 2 data/san_2gram_min2_top10.tsv 58,504 data/san_3gram_min2_top10.tsv 70,682
gom Konkani 1,865,903 131,634 2 data/gom_2gram_min2_top10.tsv 59,951 data/gom_3gram_min2_top10.tsv 67,884

Notes

  • Built with the exact same pipeline as Thanmay/sangraha_ngrams, applied to spoken/conversational ASR transcripts in ai4bharat/IndicVoices.
  • Counts are raw and pruned (min_count=2, top_k=10).

License and attribution

Derived from ai4bharat/IndicVoices, licensed CC-BY-4.0. This derived dataset is released under the same license; please cite the IndicVoices paper when using it.

Downloads last month
-