--- dataset_info: features: - name: text dtype: string splits: - name: train num_bytes: 2055012505.7164633 num_examples: 12352279 - name: test num_bytes: 228334815.28353664 num_examples: 1372476 download_size: 992994556 dataset_size: 2283347321 configs: - config_name: default data_files: - split: train path: data/train-* - split: test path: data/test-* task_categories: - text-generation - fill-mask task_ids: - language-modeling - masked-language-modeling language: - my pretty_name: Myanmar CC100 Dataset --- *Please visit to the [GitHub repository](https://github.com/chuuhtetnaing/myanmar-language-dataset-collection) for other Myanmar Langauge datasets.* # Myanmar CC100 Dataset A preprocessed subset of the [CC100 dataset](https://huggingface.co/datasets/statmt/cc100) containing only Myanmar language text, with consistent **Unicode** encoding. ## Dataset Description This dataset is derived from the [statmt/cc100](https://huggingface.co/datasets/statmt/cc100) created by ["Statistical and Neural Machine Translation"](https://data.statmt.org/). It contains only the Myanmar language portion of the original CC100 dataset, with additional preprocessing to standardize text encoding. ### Preprocessing The main preprocessing step applied to this dataset was: - **Zawgyi to Unicode conversion**: Myanmar text can be encoded in two different ways - Zawgyi and Unicode. We detected Zawgyi-encoded text and converted it to Unicode for consistency, ensuring all text in the dataset uses the same encoding standard. The conversion was performed using [Myanmar Tools](https://github.com/google/myanmar-tools) for detection and ICU for transliteration: ```python from myanmartools import ZawgyiDetector from icu import Transliterator # Initialize the detector and converter detector = ZawgyiDetector() converter = Transliterator.createInstance('Zawgyi-my') # Example conversion function def zawgyi_to_unicode(text): score = detector.get_zawgyi_probability(text) if score > 0.5: # If likely Zawgyi return converter.transliterate(text) return text # Already Unicode ``` ### Dataset Structure The dataset contains only one field: - `text`: The main text content in Myanmar language (Unicode encoded) ## Usage You can load this dataset using the Hugging Face datasets library: ```python from datasets import load_dataset dataset = load_dataset("chuuhtetnaing/myanmar-cc100-dataset") ``` ## Dataset Creation This dataset was created by: 1. Extracting the Myanmar language content from the original statmt/cc100 dataset, which includes both Unicode ('my') and Zawgyi ('my_zaw') encoded text 2. Detecting Zawgyi-encoded text using Google's Myanmar Tools probabilistic detector 3. Converting Zawgyi text to Unicode using ICU's transliteration converter 4. Creating a 90-10 train-test split of the combined data ## Dependencies The preprocessing of this dataset relied on: - [Myanmar Tools](https://github.com/google/myanmar-tools) - For Zawgyi detection - [PyICU](https://pypi.org/project/PyICU/) - For Zawgyi to Unicode conversion - [Documentation](https://github.com/google/myanmar-tools/blob/master/clients/python/README.rst) - Documentation from Myanmar Tools ## License This dataset follows the same license as the original CulturaX dataset. Please refer to the [original dataset page](https://huggingface.co/datasets/statmt/cc100) for licensing information. Myanmar Tools is released under the [Apache License 2.0](https://github.com/google/myanmar-tools/blob/master/LICENSE).