assamese_wikipedia / README.md
marsh-mellow's picture
Update README.md
b09b01a verified
|
Raw History Blame Contribute Delete
1.99 kB
metadata
license: cc-by-4.0
task_categories:
  - text-generation
language:
  - as
size_categories:
  - 10K<n<100K

Assamese Wikipedia Corpus

Dataset Description

The Assamese Wikipedia Corpus is a pure Assamese text dataset derived from the Assamese-language Wikipedia (as.wikipedia.org). It contains cleaned plain text extracted from Wikipedia articles, stripped of all formatting, with non-Assamese characters completely removed. This dataset is designed for language modeling, NLP research, creating Assamese specific tokenizers, and other Assamese-language processing tasks.

Data Processing

  1. Crawling
  • Used the mwclient Python library to interact with Wikipedia’s API.
  • Only collected content from the main namespace (namespace=0).
  • Pages that were redirects were automatically resolved to their target articles.
  • Page titles were tracked to avoid processing the same article multiple times.
  • Used mwparserfromhell to strip all MediaWiki formatting (links, templates, etc.).
  1. Filtering
  • Applied a Unicode regex to keep only Assamese characters (U+0980–U+09FF), Assamese digits, whitespace, and essential punctuation.
  • Excluded pages where more than 90% of the content was punctuation or whitespace after cleaning.
  • Removed very short pages that contained too little meaningful text.

Dataset Format

The dataset is provided as a .jsonl (JSON Lines) file, with each line containing:

{"text": "অসমীয়া উইকিপিডিয়াৰ এটি প্ৰবন্ধৰ উদাহৰণ ..."}

Example Usage

from datasets import load_dataset

# Load the dataset
dataset = load_dataset("marsh-mellow/assamese_wikipedia")
# Access the first example
print(dataset["train"][0]["text"])

License

The text in this dataset originates from Assamese Wikipedia, which is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0) License.