Version logicielle

Glossator: a Dutch language pipeline in Rust

Lexbound · 29 novembre 2026

En bref

Glossator est une chaîne de traitement du néerlandais en Rust, dans le style de spaCy. Pour chaque mot, elle donne le lemme, la catégorie grammaticale, les traits morphologiques et la relation de dépendance, et elle repère les noms de personnes, d’organisations et de lieux. Sur UD Dutch Alpino, sa précision d’analyse syntaxique (LAS) est de 89.68, contre 82.55 pour le modèle néerlandais moyen de spaCy et 90.67 pour Stanza. Sur un seul fil de processeur, elle analyse 774 phrases par seconde.

Glossator est une chaîne de traitement du néerlandais en Rust. Elle tourne sur le processeur et n’a besoin ni de Python ni d’un GPU. La note de version la compare à spaCy et à Stanza sur des jeux de test néerlandais publics : la précision sur UD Dutch Alpino et UD Dutch LassySmall, les noms sur CoNLL-2002 Dutch et la vitesse sur un fil de processeur.

Ce que les chiffres ne montrent pas

  • Glossator ne fonctionne que pour le néerlandais, et une phrase de plus de 150 tokens est analysée par morceaux.
  • Les noms sont la colonne faible. Sur CoNLL-2002 Dutch, le F1 global est de 70.9, contre 90.3 pour Stanza, dont le modèle de noms a été entraîné sur la partie d’entraînement de ce corpus.
  • Les chiffres de vitesse valent pour une seule machine et un seul fil de processeur. Le chiffre de Glossator est la durée du processus entier sur le fichier, lecture et écriture comprises.
  • Chaque système a reçu les tokens de référence des fichiers de test ; les scores ne disent donc rien de la tokenisation.

Texte complet de la version

Le texte est en anglais.

Sommaire

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.

Le modèle lit chaque mot sous trois formes (le mot lui-même, des morceaux du mot et son orthographe), les assemble et les fait passer par une convolution, un LSTM bidirectionnel et un transformeur. Cinq sorties s’appuient sur le résultat : catégorie grammaticale, morphologie, lemme, noms et analyse en dépendances.

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

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

Sur UD Dutch Alpino, Glossator atteint une précision d’analyse syntaxique (LAS) de 89.68, contre 82.55 pour spaCy et 90.67 pour Stanza. Sa précision pour les catégories grammaticales (UPOS) est de 96.74, contre 95.29 et 97.12. Stanza devance Glossator dans chaque colonne.

GlossatorspaCy et 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
Afficher les chiffres
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).

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

Sur UD Dutch LassySmall, Glossator atteint un LAS de 88.65, contre 82.33 pour spaCy et 90.63 pour Stanza. Sa précision UPOS est de 97.21, contre 95.25 et 97.29.

GlossatorspaCy et 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
Afficher les chiffres
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.

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

Sur CoNLL-2002 Dutch, le F1 global pour les noms est de 70.9 pour Glossator, 67.1 pour spaCy et 90.3 pour Stanza. spaCy devance Glossator pour les lieux (LOC), 71.5 contre 65.9.

GlossatorspaCy et Stanza

Glossator85.159.765.970.9
spaCy nl_core_news_md76.250.771.567.1
Stanza, default package93.384.492.790.3
Afficher les chiffres
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.

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

Sur un fil de processeur, Glossator analyse 774.1 phrases par seconde. spaCy en analyse 247.8 une par une et 414.0 par lots ; Stanza en analyse 7.9 et 11.7.

GlossatorspaCy et Stanza

GlossatorWhole file774.1
spaCy nl_core_news_mdSingle247.8
spaCy nl_core_news_mdBatch414.0
Stanza, default packageSingle7.9
Stanza, default packageBatch11.7
Afficher les chiffres
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.

Citer cette version

Lexbound (2026). Glossator: a Dutch language pipeline in Rust. Version logicielle, 29 novembre 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}
}

L’outil de recherche juridique de référence en Belgique.Chaque source passée en revue. Les sources décisives retenues.