yacht's picture
OpenThai2.0-NLP-Core-Benchmark 1.1: test sets, scorers and system outputs for six Thai tasks.
0e6d825
|
Raw History Blame Contribute Delete
21.2 kB
metadata
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<n<10K
configs:
  - config_name: sentseg
    default: true
    data_files:
      - split: pud
        path: sentseg/data/sentences/pud.jsonl
      - split: pud_nospace
        path: sentseg/data/sentences/pud-nospace.jsonl
      - split: pud_asr
        path: sentseg/data/sentences/pud-asr.jsonl
      - split: sukity
        path: sentseg/data/sentences/sukity.jsonl
      - split: sukity_nospace
        path: sentseg/data/sentences/sukity-nospace.jsonl
      - split: sukity_asr
        path: sentseg/data/sentences/sukity-asr.jsonl
      - split: alt
        path: sentseg/data/sentences/alt.jsonl
      - split: alt_nospace
        path: sentseg/data/sentences/alt-nospace.jsonl
      - split: alt_asr
        path: sentseg/data/sentences/alt-asr.jsonl
  - config_name: clauseseg
    data_files:
      - split: tud
        path: clauseseg/data/clauses/tud.jsonl
      - split: pud
        path: clauseseg/data/clauses/pud.jsonl
      - split: tdt
        path: clauseseg/data/clauses/tdt.jsonl
  - config_name: postag
    data_files:
      - split: tud
        path: viewer/postag/tud.jsonl
      - split: pud
        path: viewer/postag/pud.jsonl
      - split: tdt
        path: viewer/postag/tdt.jsonl
  - config_name: depparse
    data_files:
      - split: tud
        path: viewer/depparse/tud.jsonl
      - split: pud
        path: viewer/depparse/pud.jsonl
      - split: tdt
        path: viewer/depparse/tdt.jsonl
  - config_name: conparse
    data_files:
      - split: tud
        path: viewer/conparse/tud.jsonl

OpenThai2.0-NLP-Core-Benchmark

A fixed test for six Thai tasks: sentence segmentation, clause segmentation, part-of-speech tagging, dependency parsing, constituency parsing and named entity recognition. Each task has its own folder with its test sets, one scorer and the stored outputs of every system in its table, so every published number can be recomputed. Benchmark version 1.1: the five tasks of version 1.0, frozen on 2026-11-23, and named entities, added on 2026-12-01. Word segmentation has its own benchmark, OpenThai2.0-WordSeg-Benchmark.

Tasks

Task Folder Test sets Score
Sentence segmentation sentseg UD Thai-PUD, OPUS-100, Thai Sentence Boundaries and ALT, each as written, without spaces, and speech-like, with neither spaces nor punctuation boundary F1
Clause segmentation clauseseg the test sentences of UD Thai-TUD, PUD and TDT, cut into clauses boundary F1
Part-of-speech tagging postag UD Thai-TUD, PUD and TDT, and TUD as released with its paper UPOS accuracy at the gold words, UPOS F1 from raw text
Dependency parsing depparse the same four LAS and UAS, at the gold words and from raw text
Constituency parsing conparse Penn-style trees over the UD Thai-TUD test sentences bracket F1, at the gold words and from raw text
Named entity recognition ner the test split of ThaiNER v2.2 entity F1 on character spans

The README of each folder gives its test sets, how scores are computed, and the results of every system.

Gold and silver labels

Every test text is published Thai text. Gold labels are those of the sources. Silver labels are made by us from gold ones by rules and partly checked by hand.

  • Gold, as their sources release them. The POS tags and dependency trees of UD Thai-TUD, PUD and TDT, the named entities of ThaiNER v2.2, and the sentence ends: the sentences of PUD and ALT, the lines of OPUS-100 and the ends of Thai Sentence Boundaries.
  • Silver, made from the gold UD trees. The clause units, read off the trees by fixed rules (clauseseg), and the constituency trees, a rule-based conversion with many errors (conparse).
  • Texts changed by us, gold ends kept. The sentence sets without spaces and the speech-like ones, where spaces, or spaces and punctuation, are deleted. A document of OPUS-100 is ten consecutive lines of its test file.

The texts of PUD and ALT are translations into Thai, and OPUS-100 is the Thai side of a parallel corpus. Most documents of Thai Sentence Boundaries are native Thai sentences of Tatoeba, which its authors put together, as its card says.

Results

OpenThai2.0-NLP-Core-Lite against the best tool from other authors on each task, from raw text, as the model card and the paper report them. Each system in this table gets what our model gets:

Task Score Test data Best other tool Its score NLP Core
Sentences boundary F1 12 sets SaT-12l-sm, threshold tuned 77.5 78.6†
Clauses boundary F1 3 treebanks, silver HoogBERTa 30.0* 70.8
POS tags UPOS F1 3 treebanks Stanza 1.15 accurate 73.1 74.7†
Dependency trees LAS F1 3 treebanks Stanza 1.15 accurate 49.8 52.8†
Constituency trees bracket F1 TUD, silver Stanza 1.15 accurate 78.6* 79.4
Named entities entity F1 ThaiNER phayathaibert-thainer 85.7 84.7
  • The higher score is bold, and † marks a lead beyond the 95% interval of a paired bootstrap. A higher score without † is a tie.
  • A score over several test sets is their mean. The 12 sentence sets are four sets, each as written, without spaces, and speech-like, with neither spaces nor punctuation. The three treebanks are UD Thai-TUD, PUD and TDT.
  • * No tool from other authors does this task as such, so the closest tool is shown. HoogBERTa learnt another clause unit and can end a clause only at a space, so its row has no bold. Stanza reaches constituency trees by conversion of its dependency trees.
  • What each system gets. The threshold of SaT-12l-sm is chosen on the same development sets as that of our model. For tags and trees, each system gets one sentence and finds its own words, and Stanza runs with its sentence splitter off. phayathaibert-thainer, like thainer-v2, tags the first piece of each newmm word. Each folder keeps the outputs of the default calls too.
  • Every system of each task is in the tables below. Words, scored with the word benchmark on its seven sets: word F1 85.7 against 84.5 for SEFR CUT-best.

Every system, by task

The table of each task folder, with every system it scores. The README of the folder gives the test sets, how each system is called and the outputs of its default call.

Sentences

Boundary F1 (%), from sentseg: the mean of all 12 sets, then of the four sets in each form, as written (Spaced), without spaces (No space) and speech-like, with neither spaces nor punctuation (ASR).

System All 12 Spaced No space ASR
OpenThai2.0-NLP-Core-Lite 78.6 84.2 76.6 75.1
SaT 12l-sm (wtpsplit), its threshold chosen on the development sets 77.5 84.6 74.6 73.2
SaT 12l-sm (wtpsplit) 74.6 85.3 70.8 67.6
SaT 6l-sm (wtpsplit) 63.6 81.9 57.4 51.4
SaT 9l-sm (wtpsplit) 56.2 79.8 47.9 41.0
SaT 3l-sm (wtpsplit) 42.4 75.3 30.1 21.9
SaT 12l (wtpsplit) 26.9 79.0 1.3 0.3
SaT 9l (wtpsplit) 25.0 67.0 3.9 4.0
SaT 6l (wtpsplit) 24.8 73.5 0.6 0.3
SaT 1l-sm (wtpsplit) 24.6 64.8 8.0 1.1
SaT 3l (wtpsplit) 22.8 68.3 0.1 0.0
WtP bert-mini (wtpsplit) 22.6 56.2 10.1 1.6
WtP canine-s-12l (wtpsplit) 22.4 67.2 0.0 0.0
PyThaiNLP crfcut 22.4 58.4 8.8 0.0
WtP canine-s-3l (wtpsplit) 20.8 62.4 0.0 0.0
WtP canine-s-1l (wtpsplit) 20.8 62.1 0.1 0.1
SaT 1l (wtpsplit) 20.2 60.3 0.2 0.1
Stanza 1.15 tokenizer 18.9 11.2 23.3 22.3
WtP bert-tiny (wtpsplit) 18.1 47.7 6.1 0.5
TLTK 17.2 46.9 2.3 2.5
a sentence at every whitespace and newline, PyThaiNLP (baseline) 15.4 46.3 0.0 0.0
a sentence at every whitespace (baseline) 15.4 46.2 0.0 0.0
PyThaiNLP thaisum 11.9 18.4 11.6 5.6
PyThaiNLP tltk engine 2.7 3.3 2.3 2.5

Bold: the best value of each column.

Clauses

Boundary F1 (%) on the silver clause units of each treebank, and their mean, from clauseseg.

System TUD PUD TDT Mean
OpenThai2.0-NLP-Core-Lite 73.1 71.8 67.5 70.8
our clause teacher, XLM-R large fine-tuned (reference) 75.5 69.1 67.8 70.8
HoogBERTa-SENTENCE-lst20 (NECTEC) 26.9 35.5 27.7 30.0
a unit at every whitespace (baseline) 31.6 27.1 31.4 30.0
TLTK 1.11 segment() 29.6 26.3 29.5 28.5
PyThaiNLP 5.0.5 clause_tokenize 0.0 0.0 0.0 0.0

Bold: the best value of each column, reference rows left out.

POS tags

UPOS accuracy at the gold words / UPOS F1 from raw text (%), from postag. TUDP is TUD as released with its paper.

System TUD PUD TDT TUDP
OpenThai2.0-NLP-Core-Lite 92.0 / 83.8 77.8 / 68.2 79.3 / 72.1 90.6 / 82.4
Stanza 1.15, default_accurate package 91.4 / 83.1 77.1 / 66.1 79.8 / 70.1 90.0 / 81.8
PhayaThaiBERT POS tagger (nlp-chula) 91.2 / 63.8 77.1 / 53.9 79.0 / 54.8 89.8 / 62.4
Stanza 1.11, default_accurate package (wangchanberta) 90.7 / 81.8 78.4 / 65.4 78.7 / 66.4 92.0‖ / 83.1‖
Stanza 1.15, default package 90.7 / 81.2 76.3 / 64.1 80.0 / 67.9 89.5 / 80.0
Stanza 1.11, default package 89.2 / 80.7 77.4 / 64.8 78.0 / 65.7 90.5‖ / 81.9‖
PyThaiNLP perceptron tagger, TUD model 85.3 / 59.1 72.0 / 51.0 73.9 / 49.3 86.4 / 60.2
KoichiYasuoka/camembert-thai-base-upos 83.1 / 74.0 84.6§ / 77.2§ 66.3 / 58.1 84.4 / 75.1
PyThaiNLP unigram tagger, tud model 80.6 / 56.5 66.4 / 47.0 67.7 / 45.6 81.7 / 57.5
KoichiYasuoka/deberta-base-thai-upos 80.1 / 73.2 79.8§ / 75.9§ 65.7 / 60.2 81.3 / 74.4
KoichiYasuoka/roberta-base-thai-spm-upos 79.1 / 72.0 78.9§ / 74.9§ 65.8 / 60.5 80.3 / 73.2
PyThaiNLP tltk tagger (TLTK's pos_tag) 78.8 / 54.6 67.8 / 47.8 69.5 / 45.5 80.1 / 55.7
KoichiYasuoka/roberta-base-thai-char-upos 76.0 / 68.4 72.7§ / 67.8§ 64.8 / 60.1 77.3 / 69.6
KoichiYasuoka/roberta-base-thai-syllable-upos 74.6 / 65.3 72.1§ / 66.1§ 63.9 / 57.1 75.8 / 66.4
KoichiYasuoka/modernbert-base-thai-cc100-upos 72.2 / 65.5 88.3‡ / 87.4‡ 63.5 / 58.5 72.3‖ / 65.6‖
lunarlist/pos_thai_phayathai 70.4 / 17.3† 65.8 / 16.2† 68.4 / 16.1† 71.5 / 17.4†
KoichiYasuoka/modernbert-large-thai-wikipedia-upos 70.3 / 62.4 81.4‡ / 77.8‡ 63.7 / 58.8 70.5‖ / 62.5‖
KoichiYasuoka/modernbert-base-thai-wikipedia-upos 70.0 / 62.4 82.1‡ / 79.2‡ 63.6 / 58.6 70.2‖ / 62.5‖
Pavarissy/mdeberta-v3-ud-thai-pud-upos 69.8 / 35.2† 94.9‡ / 49.8‡† 73.7 / 35.7† 70.9 / 35.5†
Pavarissy/wangchanberta-ud-thai-pud-upos 69.4 / 25.4† 94.2‡ / 38.8‡† 72.8 / 26.1† 70.4 / 25.4†
PyThaiNLP perceptron tagger, orchid_ud model 69.0 / 48.5 64.2 / 46.3 63.5 / 41.8 70.2 / 49.5
lunarlist/pos_thai 68.7 / 14.3† 65.5 / 12.8† 68.2 / 15.1† 69.9 / 14.3†
PyThaiNLP perceptron tagger, pud model 66.7 / 47.4 97.7‡ / 65.2‡ 66.8 / 44.4 67.7 / 48.3
PyThaiNLP perceptron tagger, blackboard_ud model 66.5 / 44.5 62.3 / 43.6 65.9 / 42.9 67.6 / 45.6
PyThaiNLP perceptron tagger, tdtb model 65.1 / 46.7 63.2 / 45.4 60.3 / 40.8 66.2 / 47.8
KoichiYasuoka/bert-base-thai-upos 65.0 / 47.7 83.8§ / 71.2§ 66.9 / 49.7 65.6 / 48.4
PyThaiNLP unigram tagger, blackboard_ud model 63.2 / 42.2 58.5 / 41.3 63.2 / 41.2 64.4 / 43.3
PyThaiNLP unigram tagger, tdtb model 61.8 / 44.5 59.2 / 42.3 57.1 / 39.4 62.9 / 45.5
PyThaiNLP unigram tagger, pud model 61.4 / 43.5 92.7‡ / 63.6‡ 60.7 / 40.7 62.5 / 44.5
PyThaiNLP unigram tagger, orchid_ud model 58.9 / 41.9 53.0 / 38.1 50.3 / 34.5 60.0 / 43.0
PyThaiNLP esupar parser – / 72.5 – / 75.4§ – / 61.5 – / 73.7
PyThaiNLP ud_goeswith parser – / 56.6 – / 88.2‡ – / 62.1 – / 57.6
PyThaiNLP transformers_ud parser – / 53.1 – / 72.3§ – / 50.1 – / 54.1
PyThaiNLP spacy_thai parser – / 47.7 – / 46.6‡ – / 40.8 – / 48.8‖
the TUD paper's stored predictions – – – 91.4‖ / –

Each KoichiYasuoka row joins two runs of the model: the gold-word columns come from the run given the words, the raw-text columns from the run given the text (<name>-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. 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.

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: 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).

Quick start

Download the folder of one task, then follow its README:

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), 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.