3 unstable releases
0.2.1 | Jul 2, 2020 |
---|---|
0.2.0 | Apr 9, 2020 |
0.1.0 | Oct 11, 2019 |
#8 in #dutch
27 downloads per month
76MB
1.5M
SLoC
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.