metadata
language:
- ml
Malayalam Pretraining/Tokenization dataset.
Preprocessed and combined data from the following links, * ai4bharat * CulturaX * Swathanthra Malayalam Computing
Commands used for preprocessing.
To remove all non Malayalam characters.
sed -i 's/[^ം-ൿ.,;:@$%+&?!() ]//g' test.txt
To merge all the text files in a particular Directory(Sub-Directory)
find SMC -type f -name '*.txt' -exec cat {} ; >> combined_SMC.txt
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