CoolFace
Datasetpublic

aisingapore/WangchanLION-Curated

Citation @misc{phatthiyaphaibun2025mangosteenopenthaicorpus, title={Mangosteen: An Open Thai Corpus for Language Model Pretraining}, author={Wannaphong Phatthiyaphaibun and Can Udomcharoenchaikit and Pakpoom Singkorapoom and Kunat Pipatanakul and Ekapol Chuangsuwanich and Peerat Limkonchotiwat and Sarana Nutanong}, year={2025}, eprint={2507.14664}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2507.14664}, }… See the full description on the dataset page: https://huggingface.co/datasets/aisingapore/WangchanLION-Curated.

sourceHugging Faceodc-byupdated 1y agoView on Hugging Face
4likes239downloads
Dataset Card

Citation

@misc{phatthiyaphaibun2025mangosteenopenthaicorpus,
      title={Mangosteen: An Open Thai Corpus for Language Model Pretraining}, 
      author={Wannaphong Phatthiyaphaibun and Can Udomcharoenchaikit and Pakpoom Singkorapoom and Kunat Pipatanakul and Ekapol Chuangsuwanich and Peerat Limkonchotiwat and Sarana Nutanong},
      year={2025},
      eprint={2507.14664},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2507.14664}, 
}

We have collected additional Thai text that is unlikely to be included in the common crawl from various sources. The total number of documents collected is as follows:425,304 documents, we deduplication these noncc documents to later divide them into train sets for further web data and validation set.

The following table shows the analysis of the data after deduplication.

typeSourceNumber of documentsNumber of wordsCultural?Human-craft?Evaluation topics?
encyclopedicth.wikibooks.org1,179756,175NoCommon safety
th.wikipedia.org162,18974,151,797NoCommon safety
th.wikiquote.org929156,910NoCommon safety
th.wikisource.org1,8905,601,908NoCommon safety
financeairesearch/cmdf_vistec86,813348,189,390NoCommon safety
government documentlift catalog data16,931NoYes/NoCommon safety
data.go.th9,4882,766,950NoNoCommon safety
envilink.go.th110,659
government data catalog smart plus4275,290,950YesYes/NoCommon safety/ Cross-lingual
https://ratchakitcha.soc.go.th59,744175,031,218YesYesCulture safety/ Cross-lingual
nakhoratchasima data catalog168,000YesYesCountry safety/ Cross-lingual
opdc data portal3,148598,829
open-d7284,100
royal thai government141,356
National Economic and Social Development Board137,663
pythainlp/thailand-policy-statements60226,087
legalpythainlp/thai-cc-license650,727
pythainlp/thai-constitution-corpus20444,313
pythainlp/thailaw-v1.052,31779,715,118
academic literaturegovernment data catalog smart plus4275,290,950
openbase.in.th4,173165,909,425
platform for social empowerment and transformation90209,716
pythainlp/thai-it-books7174,644
pythainlp/thai-tnhc2-books35322,002,703
pythainlp/tlcv2.0_oa3612,970,463
TDRI252,801,106
Bangkok Open Data102,334
Open educational resources repository1447,951
CMU Journal of Law and Social Sciences4737,976
E-journal of education studies, Burapha University6859,137
Chulalongkorn University Law Journal6446,425
Lanna Journal of Health Promotion and Environmental Health5352,320
Journal of Educational Studies, Burapha University6456,320
Journal of Yanasangwon Research Institute6547,286
Journal of Food and Drug Administration79115,541
https://github.com/kongruksiamza/ebook-for-education883,432
social technology institute311,152
youtubeyoutube17,82646,613,632

Documents from some sources cannot be directly used or easily processed. It is necessary to use text extraction technology (OCR) to extract the text due to the document format in PDF. The table below shows the number and proportion of documents that required OCR.

SourceNumber of documentsNumber of documents required for PCRPercentage of documents requiring OCR
data.go.th9488180.189713
government data catalog smart plus42719846.370023
ebook construction88100
openbase.in.th4173344382.50659
opendata.nesdc.go.th7342.857143
royal thai government11100
Open educational resources repository14214.285714

The model used for text extraction ishttps://github.com/VikParuchuri/marker In the future, you should try VLM, such as:https://olmocr.allenai.org/Or Typhoon2 Vision

Data from various sources can be classified into 6 types as shown in the table below.

Domaincountproportion
Encyclopedic16618741.34
Finance8681321.59
Government72,87918.13
Legal52,34313.02
YouTube17,8374.43
Education5,9111.47

The additional documents we collect are confirmed to be open source and have a license to allow for redistribution, with the copyright share as shown in the table below.

licensecountproportion
CC BY-SA 4.016618741.388233
CC011287128.110088
CC BY 4.011240727.994531
CC BY-NC-SA 4.041731.03927
ODC-BY37690.938655
CC BY-NC 4.018530.461483
CC BY-NC-ND 4.02500.062262
CC BY 3.0130.003238
GFDL60.001494
OGL30.000747

Resources

  • Pre-training data (web): https://huggingface.co/datasets/aisingapore/WangchanLION-Web
  • Pre-training data (curated): https://huggingface.co/datasets/aisingapore/WangchanLION-Curated
  • Pre-training model: https://huggingface.co/aisingapore/WangchanLION-v3
  • SFT model: https://huggingface.co/aisingapore/WangchanLION-v3-IT
  • Paper: https://arxiv.org/abs/2507.14664
  • Blog: https://sea-lion.ai/sea-lion-wangchanlionv3/
  • Github: https://github.com/vistec-AI/Mangosteen