Software release

Glossator: a Dutch language pipeline in Rust

Lexbound · 29 november 2026

In het kort

Glossator is een taalpijplijn voor het Nederlands in Rust, in de stijl van spaCy. Het geeft van elk woord het lemma, de woordsoort, de morfologische kenmerken en de dependentierelatie, en het markeert de namen van personen, organisaties en plaatsen. Op UD Dutch Alpino is de nauwkeurigheid van de zinsontleding (LAS) 89.68, tegen 82.55 voor het middelgrote Nederlandse model van spaCy en 90.67 voor Stanza. Op één processorthread analyseert het 774 zinnen per seconde.

Glossator is een taalpijplijn voor het Nederlands in Rust. Het draait op de CPU en heeft geen Python en geen GPU nodig. De release note vergelijkt het met spaCy en Stanza op openbare Nederlandse testsets: nauwkeurigheid op UD Dutch Alpino en UD Dutch LassySmall, namen op CoNLL-2002 Dutch en snelheid op één processorthread.

Wat de cijfers niet aantonen

  • Glossator werkt alleen voor het Nederlands, en een zin van meer dan 150 tokens wordt in stukken geanalyseerd.
  • Namen zijn de zwakke kolom. Op CoNLL-2002 Dutch is de totale F1 70.9, tegen 90.3 voor Stanza, waarvan het namenmodel op het trainingsdeel van dat corpus is getraind.
  • De snelheidscijfers gelden voor één machine en één processorthread. Het cijfer van Glossator is de tijd van het hele proces op het bestand, inclusief lezen en schrijven.
  • Elk systeem kreeg de gouden tokens van de testbestanden, dus de scores zeggen niets over tokenisatie.

Volledige tekst van de release

De tekst is in het Engels.

Inhoud

Abstract

Glossator is a Dutch language pipeline in Rust, in the style of spaCy. For every word it gives the lemma, the part of speech, the morphological features and the dependency relation, and it marks the names of persons, organisations and places. One model of about 90 MB with 22.6 million parameters does this on the CPU through ONNX Runtime. On the UD Dutch Alpino test set its parse accuracy (LAS) is 89.68, against 82.55 for spaCy's medium Dutch model and 90.67 for Stanza. On one CPU thread it analyses 774 sentences per second, against 414 for spaCy in batch mode and 11.7 for Stanza in batch mode.

What Glossator does

Glossator takes Dutch text, splits it into sentences and tokens, and runs one model that gives each token its lemma, its Universal Dependencies part of speech, its morphological features, its head and its dependency relation. The same model marks names as PER, ORG or LOC, and as ANON where a placeholder stands for an anonymised name. The output is CoNLL-U or JSON with Universal Dependencies labels. The program is one Rust library and one command line tool, and it runs without Python and without a GPU.

For the sentence "Jan Peeters woont sinds 2019 in Gent." the command line tool writes eight lines, one for each token. The ten standard CoNLL-U columns are separated by tabs and shown here aligned. The columns for the language-specific tag and for enhanced dependencies are empty, and the name stands in the last column.

1  Jan      Jan      PROPN  _  _                                             3  nsubj  _  NER=B-PER
2  Peeters  Peeters  PROPN  _  _                                             1  flat   _  NER=I-PER
3  woont    wonen    VERB   _  Mood=Ind|Number=Sing|Tense=Pres|VerbForm=Fin  0  root   _  _
4  sinds    sinds    ADP    _  _                                             5  case   _  _
5  2019     2019     NUM    _  _                                             3  obl    _  _
6  in       in       ADP    _  _                                             7  case   _  _
7  Gent     Gent     PROPN  _  Gender=Neut|Number=Sing                       3  obl    _  SpaceAfter=No|NER=B-LOC
8  .        .        PUNCT  _  _                                             3  punct  _  _

How the model is built

Glossator is an encoder. It reads the sentence once and produces one vector per word, and five small classifiers read those vectors. It has no decoder and generates no text.

Het model leest elk woord in drie vormen (het woord zelf, stukjes van het woord en de spelling), voegt ze samen en leidt ze door een convolutie, een bidirectionele LSTM en een transformer. Op het resultaat zitten vijf uitgangen: woordsoort, morfologie, lemma, namen en de dependentieparse.

What the model sees of each wordThe word itselftable of 221,745 words64 numbersPieces of the wordhashed 3 to 5 letter pieces64 numbersIts spellingfirst and last 8 letterssmall convolution, 48 numbersOne encoder for the whole sentenceJoin176 in192 outConvolution2 layerswidth 192over neighboursBiLSTM1 layer192 each wayTransformer2 layerswidth 2564 headsFive outputsPart of speech17 tagsMorphology136 feature setsLemma3,916 rewrite rulesNamesPER, ORG, LOC, ANONDependency parsea head and one of42 relationsWhat the model sees of each wordThe word itselftable of 221,745 words64 numbersPieces of the wordhashed 3 to 5 letter pieces64 numbersIts spellingfirst and last 8 letterssmall convolution, 48 numbersOne encoder for the whole sentenceJoin176 in192 outConvolution2 layerswidth 192over neighboursBiLSTM1 layer192 each wayTransformer2 layerswidth 2564 headsFive outputsPart of speech17 tagsMorphology136 feature setsLemma3,916 rewrite rulesNamesPER, ORG, LOC, ANONDependency parsea head and one of 42 relations
22.6 million parameters: 18.4 million in the word and word-piece tables, 4.2 million in the network.

Each word enters the model in three forms. The first is the word itself, looked up in a table of 221,745 lower-cased words. The second is its pieces: the three- to five-letter pieces of the word, hashed into a second table. The third is its spelling: the first and last eight letters, read by a small convolution. The second and the third let the model handle a word that is not in the table.

The three are joined and passed through two convolution layers that look at neighbouring words, one bidirectional LSTM layer that reads the sentence in both directions, and two transformer layers with four attention heads that relate every word to every other word.

Five outputs sit on top: the part of speech (17 tags), the morphological features (136 sets), the lemma (one of 3,916 rewrite rules that turn a word form into its dictionary form), the names, and the dependency parse, where a biaffine scorer picks a head for every word and one of 42 relations. After the network, plain rules make the parse a tree with one root and choose a consistent sequence of name labels.

The model has 22.6 million parameters. The two tables hold 18.4 million of them, and the network itself has 4.2 million.

How it was measured

Every system received the gold tokens of the test files, so tokenisation does not enter the scores. Part of speech, features, lemma and dependencies are scored with the official CoNLL 2018 scorer on two test sets: UD Dutch Alpino, with 587 sentences after removing sentences that also occur in other corpora, and UD Dutch LassySmall, with 1654 sentences after the same step. Names are scored on CoNLL-2002 Dutch ned.testb, with 5195 sentences, as the F1 of exact spans. Gold MISC spans are not a Glossator label and count as no name.

Speed is measured on the UD Dutch Alpino test file, with 596 sentences and 11046 words, on one CPU thread. Model loading and a warm-up of 20 sentences are left out, and the figure is the median of three passes. The Glossator figure is the wall time of the process on the file, minus its start-up time, so it includes reading the file and writing CoNLL-U.

The systems are Glossator, spaCy 3.8.18 with nl_core_news_md 3.8.0, and Stanza 1.15.1 with its default Dutch package. The machine has an AMD Ryzen 9 9950X3D. The run was made on 29 November 2026. The harness, the list of left-out sentences and the commands to repeat every row are in the bench folder of the code repository.

Results

Table 1. Accuracy on UD Dutch Alpino test (587 sentences).

Figuur 1. Accuracy on UD Dutch Alpino test, by system

Op UD Dutch Alpino haalt Glossator een nauwkeurigheid van de zinsontleding (LAS) van 89.68, tegen 82.55 voor spaCy en 90.67 voor Stanza. De nauwkeurigheid van de woordsoorten (UPOS) is 96.74, tegen 95.29 en 97.12. Stanza staat in elke kolom voor op Glossator.

GlossatorspaCy en Stanza

Glossator96.7496.6994.9792.4589.68
spaCy nl_core_news_md95.2975.1291.0986.9382.55
Stanza, default package97.1297.2596.2892.9490.67
Toon de cijfers
SystemUPOSUFeatsLemmaUASLAS
Glossator96.7496.6994.9792.4589.68
spaCy nl_core_news_md95.2975.1291.0986.9382.55
Stanza, default package97.1297.2596.2892.9490.67

Table 2. Accuracy on UD Dutch LassySmall test (1654 sentences).

Figuur 2. Accuracy on UD Dutch LassySmall test, by system

Op UD Dutch LassySmall haalt Glossator een LAS van 88.65, tegen 82.33 voor spaCy en 90.63 voor Stanza. De UPOS-nauwkeurigheid is 97.21, tegen 95.25 en 97.29.

GlossatorspaCy en Stanza

Glossator97.2196.0095.1691.9488.65
spaCy nl_core_news_md95.2575.5891.2387.0682.33
Stanza, default package97.2997.4796.3692.9790.63
Toon de cijfers
SystemUPOSUFeatsLemmaUASLAS
Glossator97.2196.0095.1691.9488.65
spaCy nl_core_news_md95.2575.5891.2387.0682.33
Stanza, default package97.2997.4796.3692.9790.63

Table 3. Names on CoNLL-2002 Dutch ned.testb (5195 sentences), F1 with gold MISC counted as no name.

Figuur 3. Name recognition on CoNLL-2002 Dutch, F1 by type of name

Op CoNLL-2002 Dutch is de totale F1 voor namen 70.9 voor Glossator, 67.1 voor spaCy en 90.3 voor Stanza. spaCy staat voor op Glossator bij plaatsen (LOC), 71.5 tegen 65.9.

GlossatorspaCy en Stanza

Glossator85.159.765.970.9
spaCy nl_core_news_md76.250.771.567.1
Stanza, default package93.384.492.790.3
Toon de cijfers
SystemPERORGLOCOverall
Glossator85.159.765.970.9
spaCy nl_core_news_md76.250.771.567.1
Stanza, default package93.384.492.790.3

Table 4. Speed on the UD Dutch Alpino test file, one CPU thread.

Figuur 4. Sentences per second on one CPU thread, by system and mode

Op één processorthread analyseert Glossator 774.1 zinnen per seconde. spaCy analyseert er 247.8 zin voor zin en 414.0 in batches; Stanza analyseert er 7.9 en 11.7.

GlossatorspaCy en Stanza

GlossatorWhole file774.1
spaCy nl_core_news_mdSingle247.8
spaCy nl_core_news_mdBatch414.0
Stanza, default packageSingle7.9
Stanza, default packageBatch11.7
Toon de cijfers
SystemModeSentences per secondWords per second
GlossatorWhole file774.114346
spaCy nl_core_news_mdSingle247.84593
spaCy nl_core_news_mdBatch414.07672
Stanza, default packageSingle7.9147
Stanza, default packageBatch11.7217

Reading the results

Stanza is ahead of Glossator on every accuracy figure in Tables 1 and 2. On the parse the gap is about 1 point on UD Dutch Alpino (89.68 against 90.67) and about 2 points on UD Dutch LassySmall (88.65 against 90.63). On names Stanza is far ahead, with an overall F1 of 90.3 against 70.9 for Glossator. Stanza's name model was trained on the training part of that corpus, so the comparison on names favours it.

Glossator is ahead of spaCy's medium Dutch model on every column of Tables 1 and 2. The largest difference is in the morphological features, 96.69 against 75.12 on UD Dutch Alpino. On names Glossator is ahead overall (70.9 against 67.1), for persons (85.1 against 76.2) and for organisations (59.7 against 50.7), and behind for places (65.9 against 71.5).

On one CPU thread Glossator is the fastest of the three. It analyses 774.1 sentences per second, against 414.0 for spaCy in batch mode, 247.8 for spaCy one sentence at a time, and 11.7 and 7.9 for Stanza in the same two modes.

Limits

Glossator works for Dutch only. A sentence longer than 150 tokens is analysed in pieces. Names are the weak column, as Table 3 shows. The speed figures are for one machine and one CPU thread, and the scores say nothing about tokenisation, because every system received the gold tokens. The model was trained on a mix of public and licensed Dutch text. The training data and the training code are not published.

Availability and licence

The code is at github.com/lexbound/glossator-nl under the PolyForm Noncommercial License 1.0.0. The model is at huggingface.co/lexbound/glossator-nl under CC BY-NC 4.0 and is free for noncommercial use after the terms there are accepted. For use in a product or a service, a commercial licence is available from Lexbound: hello@lexbound.ai.

Citeer deze release

Lexbound (2026). Glossator: a Dutch language pipeline in Rust. Software release, 29 november 2026. https://doi.org/10.5281/zenodo.24663187 https://lexbound.ai/en/lab/research/glossator-dutch-nlp-in-rust

BibTeX

@misc{lexbound2026glossator,
  author = {{Lexbound}},
  title  = {Glossator: a Dutch language pipeline in {Rust}},
  year   = {2026},
  month  = nov,
  note   = {Software release},
  doi    = {10.5281/zenodo.24663187},
  url    = {https://lexbound.ai/en/lab/research/glossator-dutch-nlp-in-rust}
}

Dé referentie voor juridisch onderzoek in België.Elke bron doorzocht. De doorslaggevende gebruikt.