Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,4 +6,47 @@ language:
|
|
| 6 |
- as
|
| 7 |
size_categories:
|
| 8 |
- 10K<n<100K
|
| 9 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
- as
|
| 7 |
size_categories:
|
| 8 |
- 10K<n<100K
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Assamese Wikipedia Corpus
|
| 12 |
+
|
| 13 |
+
## Dataset Description
|
| 14 |
+
|
| 15 |
+
The **Assamese Wikipedia Corpus** is a *pure Assamese* text dataset derived from the Assamese-language Wikipedia (`as.wikipedia.org`).
|
| 16 |
+
It contains cleaned plain text extracted from Wikipedia articles, stripped of all formatting, with **non-Assamese characters completely removed**.
|
| 17 |
+
This dataset is designed for language modeling, NLP research, creating Assamese specific tokenizers, and other Assamese-language processing tasks.
|
| 18 |
+
|
| 19 |
+
## Data Processing
|
| 20 |
+
1. **Crawling**
|
| 21 |
+
- Used the `mwclient` Python library to interact with Wikipedia’s API.
|
| 22 |
+
- Only collected content from the main namespace (`namespace=0`).
|
| 23 |
+
- Pages that were redirects were automatically resolved to their target articles.
|
| 24 |
+
- Page titles were tracked to avoid processing the same article multiple times.
|
| 25 |
+
- Used `mwparserfromhell` to strip all MediaWiki formatting (links, templates, etc.).
|
| 26 |
+
|
| 27 |
+
2. **Filtering**
|
| 28 |
+
- Applied a Unicode regex to **keep only Assamese characters** (`U+0980–U+09FF`),
|
| 29 |
+
Assamese digits, whitespace, and essential punctuation.
|
| 30 |
+
- Excluded pages where **more than 90% of the content was punctuation or whitespace** after cleaning.
|
| 31 |
+
- Removed very short pages that contained too little meaningful text.
|
| 32 |
+
|
| 33 |
+
## Dataset Format
|
| 34 |
+
The dataset is provided as a `.jsonl` (JSON Lines) file, with each line containing:
|
| 35 |
+
|
| 36 |
+
```json
|
| 37 |
+
{"text": "অসমীয়া উইকিপিডিয়াৰ এটি প্ৰবন্ধৰ উদাহৰণ ..."}
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## Example Usage
|
| 41 |
+
|
| 42 |
+
```python
|
| 43 |
+
from datasets import load_dataset
|
| 44 |
+
|
| 45 |
+
# Load the dataset
|
| 46 |
+
dataset = load_dataset("marsh-mellow/assamese_wikipedia")
|
| 47 |
+
# Access the first example
|
| 48 |
+
print(dataset["train"][0]["text"])
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## License
|
| 52 |
+
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.
|