rust-darts: Double-Array Trie Rust implementation.
This library is in alpha state, PRs are welcomed. An optional Forward Maximum Matching Searcher is provided when enabled by features.
Installation
Add it to your Cargo.toml:
[]
= "0.1"
then you are good to go. If you are using Rust 2015 you have to extern crate darts to your crate root as well.
Example
use File;
use DoubleArrayTrie;
use File;
use DoubleArrayTrie;
Enabling Additional Features
searcherfeature enables searcher for maximum forward matcherserializationfeature enables saving and loading serializedDoubleArrayTriedata
[]
= { = "0.1", = ["searcher", "serialization"] }
To Rebuild Dictionary
# It would take minutes, be patient.
To run benchmark tests
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.