5 unstable releases
0.4.0 | Nov 6, 2023 |
---|---|
0.3.0 | Oct 8, 2020 |
0.2.2 | Jul 2, 2020 |
0.2.1 | Apr 20, 2020 |
0.2.0 | Apr 9, 2020 |
#2 in #dutch
58KB
643 lines
alpino-tokenizer
This Rust crate provides a tokenizer based on finite state transducers. It is primarily designed to use the Alpino tokenizer for Dutch, but in principle, you could load a tokenizer for any language.
The transducer of the Alpino tokenizer can be downloaded. We will synchronize the transducer regularly as the tokenizer in Alpino is updated.
You can use the alpino-tokenizer crate to integrate the tokenizer in your Rust programs.
For convenience, an alpino-tokenize command-line utility is provided for tokenizing text on from the shell or in shell scripts.
Installing the alpino-tokenize
command-line utility
cargo
The alpino-tokenize
utility can be installed with
cargo:
$ cargo install alpino-tokenize
Nix
This repository is also a Nix flake. If you use a Nix version that
supports flakes, you can start a shell with alpino-tokenize
as
follows:
$ nix shell github:danieldk/alpino-tokenizer
License
Copyright 2019-2020 Daniël de Kok
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependencies
~7.5MB
~130K SLoC