Benchmark results¶
Measured on 2026-12-04 with benchmarks/run.sh, on the corpora at the commits in
fetch_data.sh:
zeyrek-0.2.0: the latest release on PyPI. It has no disambiguator, so it chooses the first analysis left after the rule
lemmatizeuses: proper nouns for capitalized words, other analyses for lowercase ones.main, Python:
mainat commit 7f7ef64, not released yet, with the disambiguator, analyzing in Python, as it does on a platform zeyrek-rs has no wheel for. (zeyrek-checkout-pythoninrun.sh.)main: the same code analyzing in Rust, with zeyrek-rs, as it does by default. (
run.shcalls this columnzeyrek-checkout: the code checked out where it runs.)zemberek: Zemberek 0.21.0 (cf13c7c8), with its disambiguator, built from its source and run in Docker on Java 21.
Each percentage is the share of the scored words where the system’s choice matches the annotation; see the benchmarks’ README for each measure. The analyses are compared after reducing Oflazer’s and Zemberek’s tags to what they have in common, so the TrMor scores compare zeyrek with Zemberek, not with the systems under “Published results”, which were trained on these corpora.
The speed was measured on an Apple M4 Pro, with CPython 3.14.10, in one run of
run.sh with PASSES=3. Zemberek ran in Docker’s Linux virtual machine, and zeyrek
on macOS.
“Whole text” is the main measure. Each system gets the whole corpus as one text,
as an application passes it, and splits it into sentences and words itself.
zeyrek 0.2.0 has no disambiguate, so it has no whole-text figure. Zemberek
analyzes the whole text in a JVM of its own, which hasn’t compiled its code yet, as
in one run of an application.
The scores can’t come from that pass: splitting the joined text again gives other words in some sentences, which then don’t line up with the annotated ones. So each system also analyzes the corpus’s own words, sentence by sentence, three times, with a new analyzer each time and zeyrek’s caches emptied. “Sentence by sentence” is the first pass, and “warmed up” the third. By then the JVM has compiled Zemberek’s code, which makes it up to three times as fast on the small corpora, while zeyrek’s passes take about the same time.
Scores by corpus¶
trmor2016¶
TrMor2016 test: 1,286 news sentences, tagged by hand (Yildiz et al. 2016). Scored 16858 words of 1286 sentences.
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|
|---|---|---|---|---|
Lemma: root of the chosen analysis |
87.9% |
93.8% |
93.8% |
93.8% |
Lemma: any stem of the chosen analysis |
88.9% |
94.6% |
94.6% |
94.6% |
Lemma: among the stems of any analysis |
97.4% |
98.0% |
98.0% |
98.0% |
Analysis: chosen one is correct |
62.4% |
83.7% |
83.7% |
83.5% |
Analysis: part of speech and inflections are correct |
69.7% |
91.0% |
91.0% |
90.9% |
Analysis: correct one is among the analyses |
92.0% |
92.7% |
92.7% |
92.7% |
Analysis: correct, among ambiguous words it covers |
49.6% |
84.8% |
84.8% |
84.5% |
Speed |
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|---|---|---|---|---|
Words per second, whole text |
– |
3,074 |
356,704 |
55,351 |
Analysis time, whole text (s) |
– |
6.3 |
0.1 |
0.3 |
Startup (s) |
0.5 |
0.1 |
0.0 |
0.3 |
Words per second, sentence by sentence |
4,436 |
3,082 |
101,915 |
48,888 |
Analysis time, sentence by sentence (s) |
4.3 |
6.2 |
0.2 |
0.4 |
Words per second, sentence by sentence, warmed up |
4,495 |
2,950 |
104,119 |
91,724 |
Analysis time, sentence by sentence, warmed up (s) |
4.3 |
6.5 |
0.2 |
0.2 |
Peak memory (MB) |
116 |
203 |
128 |
394 |
trmor2006¶
TrMor2006 test: 42 news sentences, tagged by hand (Yuret & Türe 2006). Scored 787 words of 42 sentences.
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|
|---|---|---|---|---|
Lemma: root of the chosen analysis |
84.0% |
92.1% |
92.1% |
92.1% |
Lemma: any stem of the chosen analysis |
85.4% |
93.3% |
93.3% |
93.3% |
Lemma: among the stems of any analysis |
96.2% |
97.3% |
97.3% |
97.3% |
Analysis: chosen one is correct |
62.4% |
82.0% |
82.0% |
81.7% |
Analysis: part of speech and inflections are correct |
71.0% |
92.8% |
92.8% |
92.5% |
Analysis: correct one is among the analyses |
90.7% |
91.4% |
91.4% |
91.4% |
Analysis: correct, among ambiguous words it covers |
44.5% |
82.0% |
82.0% |
81.6% |
Speed |
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|---|---|---|---|---|
Words per second, whole text |
– |
2,477 |
86,200 |
14,610 |
Analysis time, whole text (s) |
– |
0.3 |
0.0 |
0.1 |
Startup (s) |
0.5 |
0.1 |
0.0 |
0.3 |
Words per second, sentence by sentence |
4,289 |
2,528 |
78,364 |
14,610 |
Analysis time, sentence by sentence (s) |
0.2 |
0.3 |
0.0 |
0.1 |
Words per second, sentence by sentence, warmed up |
4,267 |
2,565 |
78,364 |
45,368 |
Analysis time, sentence by sentence, warmed up (s) |
0.2 |
0.3 |
0.0 |
0.0 |
Peak memory (MB) |
114 |
114 |
93 |
224 |
trmor2018¶
TrMor2018: 34,673 mixed-genre sentences, tagged semi-automatically, about 95.6% correct (Akyürek et al. 2019). Scored 384952 words of 34673 sentences.
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|
|---|---|---|---|---|
Lemma: root of the chosen analysis |
87.8% |
93.2% |
93.2% |
93.1% |
Lemma: any stem of the chosen analysis |
88.9% |
94.3% |
94.3% |
94.2% |
Lemma: among the stems of any analysis |
97.8% |
98.1% |
98.1% |
98.1% |
Analysis: chosen one is correct |
61.8% |
83.8% |
83.8% |
83.7% |
Analysis: part of speech and inflections are correct |
68.7% |
90.2% |
90.2% |
90.2% |
Analysis: correct one is among the analyses |
94.2% |
94.5% |
94.5% |
94.5% |
Analysis: correct, among ambiguous words it covers |
46.8% |
82.5% |
82.5% |
82.3% |
Speed |
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|---|---|---|---|---|
Words per second, whole text |
– |
4,308 |
348,200 |
163,881 |
Analysis time, whole text (s) |
– |
106.9 |
1.3 |
2.8 |
Startup (s) |
0.5 |
0.1 |
0.0 |
0.4 |
Words per second, sentence by sentence |
4,667 |
4,345 |
138,256 |
181,437 |
Analysis time, sentence by sentence (s) |
98.7 |
106.0 |
3.3 |
2.5 |
Words per second, sentence by sentence, warmed up |
4,628 |
4,221 |
134,580 |
232,075 |
Analysis time, sentence by sentence, warmed up (s) |
99.5 |
109.1 |
3.4 |
2.0 |
Peak memory (MB) |
145 |
532 |
238 |
885 |
ud-boun¶
UD Turkish BOUN test: 979 sentences, lemmas corrected by hand. Scored 9987 words of 979 sentences.
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|
|---|---|---|---|---|
Lemma: root of the chosen analysis |
86.4% |
91.3% |
91.3% |
91.3% |
Lemma: any stem of the chosen analysis |
89.3% |
94.2% |
94.2% |
94.2% |
Lemma: among the stems of any analysis |
96.9% |
97.2% |
97.2% |
97.2% |
Speed |
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|---|---|---|---|---|
Words per second, whole text |
– |
2,641 |
286,071 |
52,013 |
Analysis time, whole text (s) |
– |
4.5 |
0.0 |
0.2 |
Startup (s) |
0.5 |
0.1 |
0.0 |
0.4 |
Words per second, sentence by sentence |
4,653 |
2,855 |
87,701 |
40,455 |
Analysis time, sentence by sentence (s) |
2.6 |
4.2 |
0.1 |
0.3 |
Words per second, sentence by sentence, warmed up |
4,567 |
2,822 |
87,065 |
85,821 |
Analysis time, sentence by sentence, warmed up (s) |
2.6 |
4.3 |
0.1 |
0.1 |
Peak memory (MB) |
114 |
176 |
123 |
348 |
ud-imst¶
UD Turkish IMST test: 1,100 sentences, also used by SIGMORPHON 2019. Scored 7817 words of 1100 sentences.
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|
|---|---|---|---|---|
Lemma: root of the chosen analysis |
86.8% |
93.6% |
93.6% |
93.6% |
Lemma: any stem of the chosen analysis |
89.2% |
96.0% |
96.0% |
96.0% |
Lemma: among the stems of any analysis |
98.3% |
98.5% |
98.5% |
98.5% |
Speed |
zeyrek-0.2.0 |
main, Python |
main |
zemberek |
|---|---|---|---|---|
Words per second, whole text |
– |
3,101 |
304,688 |
46,651 |
Analysis time, whole text (s) |
– |
3.1 |
0.0 |
0.2 |
Startup (s) |
0.5 |
0.1 |
0.0 |
0.3 |
Words per second, sentence by sentence |
5,102 |
3,163 |
105,978 |
51,316 |
Analysis time, sentence by sentence (s) |
1.9 |
3.1 |
0.1 |
0.2 |
Words per second, sentence by sentence, warmed up |
4,885 |
3,168 |
110,795 |
105,978 |
Analysis time, sentence by sentence, warmed up (s) |
2.0 |
3.1 |
0.1 |
0.1 |
Peak memory (MB) |
113 |
164 |
105 |
315 |
Published results¶
Scores that papers and shared tasks report on the same corpora. They are not directly comparable with the tables above:
The systems were trained on the corpus’s own training data, so they learned its conventions: Oflazer’s tags and lexicon in TrMor, and the lemmas of each treebank in UD, such as BOUN’s “boz” for “bozulmasına”. zeyrek and Zemberek were trained on neither.
They score their own analyses directly, without the normalisation that
score.pyneeds to compare Zemberek’s tags with Oflazer’s.Some use other versions of the corpora, or raw text instead of the corpus’s words, which adds tokenization errors.
Disambiguation on TrMor¶
Accuracy of the lemma and all tags, on all words, as reported in Akyürek et al.
2019, Table 7. That paper masks digits and Prop tags. Its TrMor2018 scores are
averages over 5 random 80/10/10 splits, so they are on a tenth of TrMor2018, not
the whole corpus.
System |
TrMor2006 |
TrMor2016 |
TrMor2018 |
|---|---|---|---|
Yuret & Türe 2006, decision lists |
95.82 |
||
Sak et al. 2007, perceptron |
96.28 |
||
Shen et al. 2016 |
96.41 |
||
Yildiz et al. 2016 |
92.20 |
||
Morse (Akyürek et al. 2019), generates analyses |
95.94 |
92.63 |
97.67 |
MorseDisamb (Akyürek et al. 2019), chooses among the analyzer’s |
96.52 |
92.82 |
98.59 |
Yuret & Türe 2006 report 95.82% on their hand-tagged test set of 958 words (§4.5), which TrMor2006 counts as 862.
On ambiguous words only, Yildiz et al. 2016 report 85.18% on TrMor2016 for their model, 83.31% for Yuret & Türe’s decision lists and 82.13% for Sak et al.’s perceptron (Table 7). They also report 97.59% for lemmas (Table 6). The TrMor2016 test sentences are also in its training set, which Yildiz et al. did not exclude.
Akyürek et al. 2019 report, for Morse on TrMor2018, 96.43% on ambiguous and 98.80% on unambiguous words (Table 8).
Lemmas on UD Turkish¶
Accuracy (SIGMORPHON) or F1 (CoNLL 2018, UDPipe, Stanza) of lemmas on the test sets.
System |
IMST |
BOUN |
UD version |
Words |
|---|---|---|---|---|
SIGMORPHON 2019 baseline |
96.41 |
2.3 |
given |
|
SIGMORPHON 2019 best, UFALPRAGUE-01 |
96.84 |
2.3 |
given |
|
CoNLL 2018 baseline, UDPipe 1.2 |
89.45 |
2.2 |
raw text |
|
CoNLL 2018 best, ICS PAS |
94.86 |
2.2 |
raw text |
|
UDPipe 2, UD 2.17 models |
95.83 |
93.62 |
2.17 |
given |
UDPipe 2, UD 2.17 models |
93.52 |
90.59 |
2.17 |
raw text |
Stanza 1.5.1 |
95.55 |
90.37 |
2.12 |
raw text |
The closest comparison is UDPipe 2 with given words. IMST and BOUN have been revised since: UDPipe’s BOUN lemma score is 94.26 with UD 2.10 models and 93.52 with UD 2.12 models.
Sources¶
Yuret & Türe 2006, Learning Morphological Disambiguation Rules for Turkish: https://aclanthology.org/N06-1042/
Yildiz et al. 2016, A Morphology-Aware Network for Morphological Disambiguation: https://arxiv.org/abs/1702.03654
Akyürek, Dayanık & Yuret 2019, Morphological Analysis Using a Sequence Decoder: https://aclanthology.org/Q19-1036/
McCarthy et al. 2019, The SIGMORPHON 2019 Shared Task, Tables 6–9: https://arxiv.org/abs/1910.11493
CoNLL 2018 shared task, lemma results for tr_imst: https://universaldependencies.org/conll18/results-lemmas.html
UDPipe 2 model performance: https://ufal.mff.cuni.cz/udpipe/2/models
Stanza performance on UD treebanks: https://stanfordnlp.github.io/stanza/performance.html