language: | |
- ml | |
**Malayalam Pretraining/Tokenization dataset.** | |
Preprocessed and combined data from the following links, | |
* [ai4bharat](https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/indiccorp/ml.tar.xz) | |
* [CulturaX](https://huggingface.co/datasets/uonlp/CulturaX/tree/main/ml) | |
* [Swathanthra Malayalam Computing](https://gitlab.com/smc/corpus/-/tree/master/text?ref_type=heads) | |
Commands used for preprocessing. | |
1. To remove all non Malayalam characters. | |
sed -i 's/[^ം-ൿ.,;:@$%+&?!() ]//g' test.txt | |
2. To merge all the text files in a particular Directory(Sub-Directory) | |
find SMC -type f -name '*.txt' -exec cat {} \; >> combined_SMC.txt | |
3. To remove all lines with characters less than 5. | |
grep -P '[\x{0D00}-\x{0D7F}]' data/ml.txt | awk 'length($0) >= 5' > preprocessed/ml.txt | |
--- | |
dataset_info: | |
features: | |
- name: text | |
dtype: string | |
splits: | |
- name: train | |
num_bytes: 46611476142 | |
num_examples: 63110105 | |
- name: test | |
num_bytes: 252742305 | |
num_examples: 267251 | |
download_size: 17881832073 | |
dataset_size: 46864218447 | |
configs: | |
- config_name: default | |
data_files: | |
- split: train | |
path: data/train-* | |
- split: test | |
path: data/test-* | |
--- | |