Crate accuracy

source
Expand description

Accuracy testing for Finite-State Spell-Checkers

A tool to help testing quality of finite-state spell-checkers. Shows precision and recall and F scores.

ยงUsage examples

Itโ€™s a command-line tool:

$ cargo run -- typos.txt se.zhfst

will produce statistics of spelling corrections.

It is possible to fine-tune the options using a configuration file in json format. The format of json file follows from the SpellerConfig definition in the main library:

$ cargo run -- --config config.json typos.txt se.zhfst

For automated testing in CI there is a โ€“threshold parametre:

$ cargo run -- --threshold 0.9 typos.txt se.zhfst

Structsยง

Staticsยง

  • CFG ๐Ÿ”’

Functionsยง