|
Download README.md from lexbound/glossator-nl: direct link, hf CLI and curl.
- Browser
- Download file 16.5 kB
-
https://huggingface.co/lexbound/glossator-nl/resolve/main/README.md
- Command line
-
hf download hf://lexbound/glossator-nl/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/lexbound/glossator-nl/resolve/main/README.md
16.5 kB
| language: | |
| - nl | |
| license: cc-by-nc-4.0 | |
| library_name: onnx | |
| pipeline_tag: token-classification | |
| thumbnail: https://raw.githubusercontent.com/lexbound/glossator-nl/main/docs/banner.png | |
| tags: | |
| - dutch | |
| - nederlands | |
| - dutch-nlp | |
| - nlp | |
| - part-of-speech-tagging | |
| - pos-tagging | |
| - lemmatization | |
| - lemmatizer | |
| - dependency-parsing | |
| - dependency-parser | |
| - named-entity-recognition | |
| - ner | |
| - token-classification | |
| - morphology | |
| - universal-dependencies | |
| - conll-u | |
| - conllu | |
| - onnx | |
| - onnxruntime | |
| - rust | |
| - cpu | |
| - spacy-alternative | |
| metrics: | |
| - accuracy | |
| - f1 | |
| extra_gated_heading: Get access to Glossator-nl | |
| extra_gated_prompt: >- | |
| Glossator-nl is the model of Glossator, a Dutch language pipeline in Rust that gives lemmas, parts of speech, | |
| morphological features, dependency relations and names. Access is free for noncommercial use: fill in the form, accept | |
| the terms and the files open at once. For use in a product or a service, write to hello@lexbound.ai for a commercial licence. | |
| extra_gated_button_content: Accept and get access | |
| extra_gated_fields: | |
| Organisation: text | |
| Country: country | |
| Intended use: | |
| type: select | |
| options: | |
| - Research | |
| - Teaching | |
| - Personal project | |
| - Evaluation for a product or service | |
| - Other | |
| I accept that the model is licensed for noncommercial use only (CC BY-NC), and that use in a product or a service needs a commercial licence: checkbox | |
| model-index: | |
| - name: glossator-nl | |
| results: | |
| - task: | |
| type: token-classification | |
| name: Part-of-speech tagging | |
| dataset: | |
| name: UD Dutch Alpino (test) | |
| type: universal-dependencies/universal_dependencies | |
| config: nl_alpino | |
| split: test | |
| metrics: | |
| - type: accuracy | |
| name: UPOS accuracy | |
| value: 96.74 | |
| - type: accuracy | |
| name: Morphological features (UFeats) accuracy | |
| value: 96.69 | |
| source: | |
| name: Glossator benchmark results, 29 November 2026 | |
| url: https://github.com/lexbound/glossator-nl/tree/main/bench | |
| - task: | |
| type: token-classification | |
| name: Lemmatization | |
| dataset: | |
| name: UD Dutch Alpino (test) | |
| type: universal-dependencies/universal_dependencies | |
| config: nl_alpino | |
| split: test | |
| metrics: | |
| - type: accuracy | |
| name: Lemma accuracy | |
| value: 94.97 | |
| source: | |
| name: Glossator benchmark results, 29 November 2026 | |
| url: https://github.com/lexbound/glossator-nl/tree/main/bench | |
| - task: | |
| type: token-classification | |
| name: Dependency parsing | |
| dataset: | |
| name: UD Dutch Alpino (test) | |
| type: universal-dependencies/universal_dependencies | |
| config: nl_alpino | |
| split: test | |
| metrics: | |
| - type: accuracy | |
| name: Labelled attachment score (LAS) | |
| value: 89.68 | |
| - type: accuracy | |
| name: Unlabelled attachment score (UAS) | |
| value: 92.45 | |
| source: | |
| name: Glossator benchmark results, 29 November 2026 | |
| url: https://github.com/lexbound/glossator-nl/tree/main/bench | |
| - task: | |
| type: token-classification | |
| name: Dependency parsing | |
| dataset: | |
| name: UD Dutch LassySmall (test) | |
| type: universal-dependencies/universal_dependencies | |
| config: nl_lassysmall | |
| split: test | |
| metrics: | |
| - type: accuracy | |
| name: Labelled attachment score (LAS) | |
| value: 88.65 | |
| source: | |
| name: Glossator benchmark results, 29 November 2026 | |
| url: https://github.com/lexbound/glossator-nl/tree/main/bench | |
| - task: | |
| type: token-classification | |
| name: Named entity recognition | |
| dataset: | |
| name: CoNLL-2002 Dutch (test) | |
| type: eriktks/conll2002 | |
| config: nl | |
| split: test | |
| metrics: | |
| - type: f1 | |
| name: Entity F1 (PER, ORG, LOC) | |
| value: 70.9 | |
| source: | |
| name: Glossator benchmark results, 29 November 2026 | |
| url: https://github.com/lexbound/glossator-nl/tree/main/bench | |
|  | |
| # Glossator-nl: Dutch NLP in Rust for lemmas, part of speech, dependency parsing and named entities | |
| Glossator-nl is a Dutch language model that gives, for every word, the lemma, the part of speech, the morphological features and the dependency relation, and marks names of persons, organisations and places. It writes CoNLL-U or JSON, reaches 89.7 labelled attachment score (LAS) for the parse and 96.7 for part of speech on UD Dutch Alpino, and analyses 774 sentences per second on one CPU thread. Version 0.1.0, 29 November 2026, made by [Lexbound](https://lexbound.ai). | |
| <table> | |
| <tr> | |
| <td align="center"><b>89.7</b><br>parse accuracy (LAS)</td> | |
| <td align="center"><b>96.7</b><br>part of speech</td> | |
| <td align="center"><b>774</b><br>sentences per second, one CPU thread</td> | |
| <td align="center"><b>90 MB</b><br>runs on the CPU, no GPU</td> | |
| </tr> | |
| </table> | |
| Glossator is free for research, teaching and other noncommercial use. For use in a product or a service, a commercial licence is available from Lexbound: hello@lexbound.ai. To download the files, accept the terms with the button at the top of the page; access opens at once. | |
| | | | | |
| |---|---| | |
| | **Language** | Dutch (Nederlands) | | |
| | **Tasks** | Tokenization, sentence splitting, lemmatization, part-of-speech tagging, morphological analysis, dependency parsing, named entity recognition | | |
| | **Labels** | Universal Dependencies: UPOS tags, UD features, UD relations; names as `PER`, `ORG`, `LOC`, `ANON` | | |
| | **Output** | CoNLL-U or JSON | | |
| | **Runs on** | CPU, through ONNX Runtime; called from Rust or from the command line | | |
| | **Size** | 22.6 million parameters, about 90 MB | | |
| | **Code** | <https://github.com/lexbound/glossator-nl> | | |
| | **DOI** | [10.5281/zenodo.24663187](https://doi.org/10.5281/zenodo.24663187) | | |
| | **Release note** | <https://lexbound.ai/en/lab/research/glossator-dutch-nlp-in-rust> | | |
| | **Made by** | [Lexbound](https://lexbound.ai) | | |
| | **Version** | 0.1.0, 29 November 2026 | | |
| ## How do I use it? | |
| Accept the terms on this page, download this folder, build the Glossator tool and point it at the folder: | |
| ``` | |
| git clone https://github.com/lexbound/glossator-nl && cd glossator-nl && cargo build --release | |
| echo "Jan Peeters woont sinds 2019 in Gent." | target/release/glossator --model-dir /path/to/this/folder | |
| ``` | |
| The output is CoNLL-U, one line per word, with the names 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 _ _ | |
| ``` | |
| From Rust: | |
| ```rust | |
| use glossator::Glossator; | |
| let pipeline = Glossator::load("/path/to/this/folder")?; | |
| let doc = pipeline.analyse("De rechtbank heeft de vordering afgewezen.")?; | |
| for token in &doc.tokens { | |
| println!("{}\t{}\t{}\t{}", token.text, token.lemma, token.upos, token.deprel); | |
| } | |
| ``` | |
| The [README of the code repository](https://github.com/lexbound/glossator-nl) has the options of the command line and the Rust interface. | |
| ## How is the model 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. | |
| Each word enters the model in three forms: the word itself, looked up in a table of 221,745 lower-cased words; its pieces of three to five letters, hashed into a second table; and 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, one bidirectional LSTM layer and two transformer layers with four attention heads. | |
| Five outputs sit on top: the part of speech (17 tags), the morphological features (136 sets), the lemma (one of 3,916 rewrite rules), the names, and the dependency parse, where a biaffine scorer picks a head for every word and one of 42 relations. The model has 22.6 million parameters: the two tables hold 18.4 million of them, and the network itself has 4.2 million. | |
| ## What is it useful for? | |
| The outputs support tasks such as indexing Dutch text by lemma for search, extracting the names of persons, organisations and places from Dutch text, finding the subject and object of a verb through the dependency relations, and preparing Dutch text for further analysis with part-of-speech tags and morphological features. | |
| ## How accurate is Glossator on Dutch? | |
| On the UD Dutch Alpino test set Glossator reaches 96.7 for part of speech, 95.0 for lemmas and 89.7 for the dependency parse (LAS). That is 7 points above spaCy's medium Dutch model on the parse and 1 point below Stanza. | |
|  | |
| | | Part of speech | Lemma | Parse (LAS) | Names (F1) | Sentences per second | | |
| |---|---|---|---|---|---| | |
| | **Glossator** | **96.7** | **95.0** | **89.7** | **70.9** | **774** | | |
| | spaCy `nl_core_news_md` 3.8 | 95.3 | 91.1 | 82.6 | 67.1 | 414 | | |
| | Stanza 1.15, Dutch | 97.1 | 96.3 | 90.7 | 90.3 | 12 | | |
| Measured on 29 November 2026 with the same gold tokens for every system and one CPU thread. Part of speech, lemma and parse are scored on the UD Dutch Alpino test set (587 sentences after removing overlapping ones) with the official CoNLL 2018 script; names on the CoNLL-2002 Dutch test set, where Stanza's name model was trained on the training part of the same corpus. spaCy and Stanza are timed in batch mode. The method, the commands to repeat every row, a second test set (UD Dutch LassySmall, where the parse score is 88.65 for Glossator, 82.33 for spaCy and 90.63 for Stanza) and the full tables are in the [bench folder](https://github.com/lexbound/glossator-nl/tree/main/bench) of the code repository, and the [release note](https://lexbound.ai/en/lab/research/glossator-dutch-nlp-in-rust) on the Lexbound site reads the results. | |
| ## How does Glossator compare with spaCy for Dutch? | |
| Glossator scores 89.68 for the parse against 82.55 for spaCy's `nl_core_news_md` 3.8, and 96.69 against 75.12 for morphological features, on UD Dutch Alpino. It also analyses 774 sentences per second against 414 in spaCy's batch mode. On names spaCy's medium model scores 67.1 and Glossator 70.9 on CoNLL-2002 Dutch. spaCy has training tools, matchers and many languages that Glossator does not have. | |
| ## How does Glossator compare with Stanza for Dutch? | |
| Glossator is within 1 point of Stanza 1.15 on the parse (89.68 against 90.67 on UD Dutch Alpino) and analyses about 65 times as many sentences per second on one CPU thread (774 against 11.7 for Stanza in batch mode). Stanza is ahead on every accuracy figure: by 0.4 for part of speech (97.12 against 96.74), by 1.3 for lemmas (96.28 against 94.97), and by most on names, where it reaches 90.3 and Glossator 70.9 on CoNLL-2002 Dutch. Stanza's name model was trained on the training part of that corpus. | |
| ## How fast is Glossator, and does it need a GPU? | |
| On one CPU thread Glossator analyses 774 sentences per second on the UD Dutch Alpino test file. That is about 65 times as many as Stanza and nearly twice as many as spaCy's medium Dutch model in batch mode. A sentence of 25 words takes about 2.5 milliseconds. It runs on the CPU through ONNX Runtime and does not use a GPU. | |
|  | |
| ## Does it run without Python? | |
| Yes. The tool and the library are written in Rust and call the model through ONNX Runtime, so no Python is needed. It is called from Rust or from the command line. | |
| ## Which labels does it use? | |
| Universal Dependencies: UPOS tags, UD morphological features and UD dependency relations. Names are `PER`, `ORG` and `LOC`; `ANON` marks a placeholder that stands for an anonymised name. | |
| ## Can I use it in a commercial product? | |
| The model is free for research, teaching and other noncommercial use. For use in a product or a service, a commercial licence is available from Lexbound: hello@lexbound.ai. | |
| ## How do I get access? | |
| Sign in to Hugging Face, press the button at the top of this page, fill in the short form and accept the terms. Access opens at once. | |
| ## In het Nederlands | |
| Glossator-nl is een model voor het Nederlands. Het geeft van elk woord het lemma (lemmatisering), de woordsoort, de morfologische kenmerken en de dependentierelatie (zinsontleding, dependency parsing), en het herkent namen van personen, organisaties en plaatsen (naamherkenning). De uitvoer is CoNLL-U of JSON. Op de testset UD Dutch Alpino haalt het model 89,7 voor de zinsontleding (LAS) en 96,7 voor woordsoorten, en op één processorthread verwerkt het 774 zinnen per seconde, zonder grafische kaart. Gemeten op 29 november 2026. Het model is gratis voor onderzoek, onderwijs en ander niet-commercieel gebruik (CC BY-NC 4.0). Voor gebruik in een product of dienst is een commerciële licentie beschikbaar bij Lexbound: hello@lexbound.ai. | |
| ## Files | |
| | File | What it holds | | |
| |---|---| | |
| | `model.onnx`, `rel.onnx` | The network: the encoder with its heads, and the scorer of dependency relations | | |
| | `config.json`, `vocab.json`, `words.bin` | Layer sizes, label lists and the word list (stored as hashes) | | |
| | `edit_trees.json` | The rules that turn a word form into its lemma | | |
| | `tokenizer_nl.json` | The tokenizer rules for Dutch | | |
| | `SHA256SUMS.txt` | Checksums of the files above | | |
| ## Limits | |
| - Dutch only. | |
| - A sentence longer than 150 tokens is analysed in pieces. | |
| - The names score is lower than Stanza's on news text (70.9 against 90.3 on CoNLL-2002). | |
| - The model was trained on a mix of public and licensed Dutch text. The training data is not distributed. | |
| ## Licence and commercial use | |
| The model is under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/): free for research, teaching and other noncommercial use, with credit to Lexbound. The code is under the PolyForm Noncommercial License 1.0.0. | |
| **For use in a product or a service, a commercial licence is available from Lexbound: write to hello@lexbound.ai.** | |
| ## Citation | |
| Murre, D. (2026). *Glossator: a Dutch language pipeline in Rust* (version 0.1.0). Zenodo. <https://doi.org/10.5281/zenodo.24663187> | |
| ```bibtex | |
| @software{murre2026glossator, | |
| author = {Murre, Donald}, | |
| title = {Glossator: a Dutch language pipeline in Rust}, | |
| year = {2026}, | |
| version = {0.1.0}, | |
| publisher = {Zenodo}, | |
| doi = {10.5281/zenodo.24663187}, | |
| url = {https://doi.org/10.5281/zenodo.24663187} | |
| } | |
| ``` | |
| ## About Lexbound | |
| Glossator is made by [Lexbound](https://lexbound.ai), which builds AI legal research on European and national law. | |
| - Release note, with the method and every result: <https://lexbound.ai/en/lab/research/glossator-dutch-nlp-in-rust> | |
| - Code: <https://github.com/lexbound/glossator-nl> | |
| - Lexbound on [LinkedIn](https://www.linkedin.com/company/lexbound), [X](https://x.com/lexboundai), [Bluesky](https://bsky.app/profile/lexbound.ai) and [GitHub](https://github.com/lexbound) | |