Skip to content
forked from divvun/divvunspell

Rust implementation of hfst-ospell

Notifications You must be signed in to change notification settings

fry/divvunspell

 
 

Repository files navigation

divvunspell

An implementation of hfst-ospell in Rust, with added features like tokenization, case handling, and parallelisation.

Actions Status

No rust?

curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
rustup default nightly
cargo build --bin divvunspell --release

Building command line frontend

To build the command line frontend for testing spellers:

cargo build --bin divvunspell --release

The result will be in the target/release/ directory. To install the binary on your $PATH:

cargo install --bin divvunspell --path .

Usage:

divvunspell 0.5.0
Testing frontend for the DivvunSpell library

USAGE:
    divvunspell [FLAGS] [OPTIONS] <--zhfst <ZHFST>|--bhfst <BHFST>|--acceptor <acceptor>> [WORDS]...

FLAGS:
    -S, --always-suggest    Always show suggestions even if word is correct (implies -s)
    -h, --help              Prints help information
        --json              Output results in JSON
    -s, --suggest           Show suggestions for given word(s)
    -V, --version           Prints version information

OPTIONS:
        --acceptor <acceptor>    Use the given acceptor file
    -b, --bhfst <BHFST>          Use the given BHFST file
        --errmodel <errmodel>    Use the given errmodel file
    -n, --nbest <nbest>          Maximum number of results for suggestions
    -w, --weight <weight>        Maximum weight limit for suggestions
    -z, --zhfst <ZHFST>          Use the given ZHFST file

ARGS:
    <WORDS>...    The words to be processed

License

The crate divvunspell is licensed under either of

at your option.

The divvunspell-tools binaries are licensed under the GPL version 3 license.

About

Rust implementation of hfst-ospell

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 92.1%
  • HTML 2.6%
  • C 2.5%
  • C++ 1.6%
  • JavaScript 0.6%
  • CSS 0.3%
  • Makefile 0.3%