--- language: - th license: - cc-by-sa-3.0 - cc0-1.0 - cc-by-2.0 - cc-by-4.0 - cc-by-sa-4.0 - apache-2.0 pretty_name: OpenThai2.0 NLP Core Benchmark task_categories: - token-classification tags: - thai - sentence-segmentation - clause-segmentation - part-of-speech - pos-tagging - dependency-parsing - constituency-parsing - named-entity-recognition - universal-dependencies - benchmark size_categories: - 1K-text` in `postag/predictions/`). ‡ trained on this test set, as its model card, corpus name or training script says; § likely trained on PUD: its card names no treebank, and its PUD score is far above its TDT score; † no word segmenter: from raw text, its words are subword pieces; ‖ trained on the training split of TUD as released with its paper, so the TUDP column holds the annotation it learnt. Bold: the best value of each column, cells marked ‡, § or † left out. #### Dependency trees LAS at the gold words / LAS F1 from raw text (%), from [depparse](https://huggingface.co/datasets/iapp/OpenThai2.0-NLP-Core-Benchmark/blob/main/depparse/README.md). TUDP is TUD as released with its paper. | System | TUD | PUD | TDT | TUDP | |---|---:|---:|---:|---:| | **OpenThai2.0-NLP-Core-Lite** | **78.8** / **67.2** | **60.0** / **45.8** | **52.7** / **45.4** | 76.9 / **65.3** | | Stanza 1.15, default_accurate package | 76.3 / 65.5 | 57.6 / 42.3 | 52.2 / 41.5 | 74.5 / 63.9 | | Stanza 1.11, default_accurate package (wangchanberta) | 75.7 / 63.7 | 57.4 / 39.8 | 51.6 / 38.8 | 77.1‖ / 64.9‖ | | attaparse 1.0.0 (nlp-chula) | 73.7 / 61.3 | 56.0 / 38.8 | 50.7 / 38.2 | 75.2‖ / 62.4‖ | | Stanza 1.15, default package | 72.2 / 60.1 | 54.0 / 38.2 | 49.8 / 37.8 | 71.2 / 59.2 | | Stanza 1.11, default package | 70.7 / 59.7 | 53.4 / 37.2 | 48.5 / 36.0 | 72.1‖ / 61.0‖ | | PyThaiNLP esupar parser | – / 57.7 | – / 67.4§ | – / 42.8 | – / 58.7 | | PyThaiNLP ud_goeswith parser | – / 36.6 | – / 79.4‡ | – / 31.0 | – / 37.5 | | PyThaiNLP transformers_ud parser | – / 30.8 | – / 56.1§ | – / 25.2 | – / 31.6 | | PyThaiNLP spacy_thai parser | – / 25.4 | – / 24.0‡ | – / 16.7 | – / 26.2‖ | | the TUD paper's best parser without gold POS, its stored predictions | – | – | – | **78.1**‖ / – | | the TUD paper's parser given its tagger's POS, its stored predictions | – | – | – | 77.5‖ / – | ‡ trained on this test set, as its model card, corpus name or training script says; § likely trained on PUD: its card names no treebank, and its PUD score is far above its TDT score; ‖ trained on the training split of TUD as released with its paper, so the TUDP column holds the annotation it learnt. Bold: the best value of each column, cells marked ‡ or § left out. #### Constituency trees Labelled bracket F1 (%) on the silver trees of TUD, at the gold words and from raw text, from [conparse](https://huggingface.co/datasets/iapp/OpenThai2.0-NLP-Core-Benchmark/blob/main/conparse/README.md). | System | Gold words | Raw text | |---|---:|---:| | **OpenThai2.0-NLP-Core-Lite** | **80.2** | **79.4** | | Stanza 1.15 default_accurate, dependency trees converted, raw text with its sentence splitter off | 79.6 | 78.6 | | Stanza 1.15 default_accurate, dependency trees converted (raw text: its own sentence splits) | 79.6 | 76.7 | | Stanza 1.15 default, dependency trees converted, raw text with its sentence splitter off | 73.1 | 70.9 | | Stanza 1.15 default, dependency trees converted (raw text: its own sentence splits) | 73.1 | 68.6 | Bold: the best value of each column. #### Named entities Entity F1 (%) on the test split of ThaiNER v2.2, from [ner](https://huggingface.co/datasets/iapp/OpenThai2.0-NLP-Core-Benchmark/blob/main/ner/README.md): on all texts, on the 1,385 texts that share no text with ThaiNER train, and on PERSON, ORGANIZATION and LOCATION alone. Input is what each system is given. | System | Input | All texts | Not in train | Three types | |---|---|---:|---:|---:| | **OpenThai2.0-NLP-Core-Lite** | text | 84.7 | 84.8 | 86.3 | | PyThaiNLP 5.4.0 phayathaibert | newmm words, first piece | **85.7** | **85.4** | **87.5** | | PyThaiNLP 5.4.0 thainer-v2 | newmm words, first piece | 82.8 | 82.8 | 85.1 | | Porameht/wangchanberta-thainer-corpus-v2-2 | newmm words, first piece | 82.8 | 82.7 | 84.8 | | Porameht/wangchanberta-thainer-corpus-v2-2 | as PyThaiNLP calls it | 61.5 | 61.9 | 70.7 | | PyThaiNLP 5.4.0 thainer-v2 | as PyThaiNLP calls it | 61.3 | 61.6 | 71.0 | | PyThaiNLP 5.4.0 tltk (TLTK 1.11) | as PyThaiNLP calls it | 38.0 | 37.8 | 46.2 | | PyThaiNLP 5.4.0 phayathaibert | as PyThaiNLP calls it | 20.3 | 20.2 | 14.2 | | PyThaiNLP 5.4.0 thainer (CRF) | as PyThaiNLP calls it | (74.2) | (74.0) | (75.4) | | PyThaiNLP 5.4.0 wangchanberta | as PyThaiNLP calls it | (61.6) | (61.5) | (68.1) | | PyThaiNLP 5.4.0 phayathaibert (reference) | ThaiNER words | 88.2 | 88.0 | 89.7 | | PyThaiNLP 5.4.0 thainer-v2 (reference) | ThaiNER words | 85.2 | 85.1 | 86.9 | | Porameht/wangchanberta-thainer-corpus-v2-2 (reference) | ThaiNER words | 84.9 | 84.7 | 86.5 | Bold: the best value of each column. Rows in parentheses and reference rows are left out of the comparison (see [ner](https://huggingface.co/datasets/iapp/OpenThai2.0-NLP-Core-Benchmark/blob/main/ner/README.md)). ## Quick start Download the folder of one task, then follow its README: ```bash pip install -U huggingface_hub hf download iapp/OpenThai2.0-NLP-Core-Benchmark --repo-type dataset --include "postag/*" --local-dir nlp-core-bench cd nlp-core-bench/postag && pip install -r requirements.txt ``` The dataset viewer has a subset for each of the five tasks of version 1.0 and a split for each of its test sets, for example `load_dataset("iapp/OpenThai2.0-NLP-Core-Benchmark", "sentseg", split="pud_nospace")`. For sentences and clauses it shows each text with the ends of its units. For the three syntax tasks it shows each sentence with its words and tags, heads and relations, or Penn tree. These come from JSON Lines copies in `viewer/`, made from the files of the task folders, which the scorers read. Named entities have no subset, as their test texts are not in this repository. ## Licences - **Test files:** each keeps the licence of its source, which the README of its folder lists. Files built from a CC BY-SA source are shared under the same licence. The NOTICE of each folder gives the attribution of each source and what was changed. - **viewer/:** copies of the labels of the POS, dependency and constituency test sets for the dataset viewer. Each keeps the licence of the test file it copies. - **Not included:** OPUS-100 (sentences) states no licence, TUD as released with its paper (POS and dependencies) has no licence file, and the card of ThaiNER v2.2 (named entities) says that the lists of its sources are lost. The first run of a task downloads them from their sources at a pinned revision and builds those sets locally. - **Predictions:** the stored outputs of the syntax tasks contain the words and text of the test sets, under their licences. Those of sentences, clauses and named entities hold ids and character offsets only, no text. - **Code** (`*.py`, `scoring/`) **and the other files we made** (manifests, checksums, sources, results, views): Apache-2.0 ([LICENSE](https://huggingface.co/datasets/iapp/OpenThai2.0-NLP-Core-Benchmark/blob/main/LICENSE)), Copyright 2026 OpenThai and iApp Technology Co., Ltd. ## Citation Please cite the source of each test set you use. The README of each folder gives their BibTeX.